Class: ChromeDebugger::DataReceived

Inherits:
Notification show all
Defined in:
lib/chrome_debugger/data_received.rb

Instance Attribute Summary

Attributes inherited from Notification

#method

Instance Method Summary collapse

Methods inherited from Notification

#initialize, #request_id, #resource_type

Constructor Details

This class inherits a constructor from ChromeDebugger::Notification

Instance Method Details

#data_lengthObject

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_lengthObject

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