struct Protocol::Network::DataReceived

Overview

Fired when data chunk was received over the network.

Included Modules

Defined in:

protocol/network.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def data_length : Int::Primitive #

Data chunk length.


[View source]
def encoded_data_length : Int::Primitive #

Actual bytes received (might be less than dataLength for compressed encodings).


[View source]
def request_id : RequestId #

Request identifier.


[View source]
def timestamp : MonotonicTime #

Timestamp.


[View source]