Class: Whisperer::Preprocessors::ContentLength
- Defined in:
- lib/whisperer/preprocessors/content_length.rb
Instance Method Summary collapse
Methods inherited from Base
Methods included from Helpers
Constructor Details
This class inherits a constructor from Whisperer::Preprocessors::Base
Instance Method Details
#process ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/whisperer/preprocessors/content_length.rb', line 8 def process headers = @record.response.headers if headers.content_length.nil? headers.content_length = @record.response.body.string.size end end |