Class: ChromeDebugger::DataReceived
- Inherits:
-
Notification
- Object
- Notification
- ChromeDebugger::DataReceived
- Defined in:
- lib/chrome_debugger/data_received.rb
Instance Attribute Summary
Attributes inherited from Notification
Instance Method Summary collapse
-
#data_length ⇒ Object
uncompressed bytes in the HTTP content.
-
#encoded_data_length ⇒ Object
bytes received over the wire.
Methods inherited from Notification
#initialize, #request_id, #resource_type
Constructor Details
This class inherits a constructor from ChromeDebugger::Notification
Instance Method Details
#data_length ⇒ Object
uncompressed bytes in the HTTP content. Excludes HTTP headers
8 9 10 |
# File 'lib/chrome_debugger/data_received.rb', line 8 def data_length @params['dataLength'].to_i end |
#encoded_data_length ⇒ Object
bytes received over the wire. Includes HTTP headers and HTTP content. The HTTP content may be compressed.
15 16 17 |
# File 'lib/chrome_debugger/data_received.rb', line 15 def encoded_data_length @params['encodedDataLength'].to_i end |