Class: Net::ReadAdapter
- Inherits:
-
Object
- Object
- Net::ReadAdapter
- Defined in:
- lib/net/http/capture.rb
Instance Attribute Summary collapse
-
#stored_body ⇒ Object
readonly
Returns the value of attribute stored_body.
Instance Method Summary collapse
-
#<<(str) ⇒ Object
If a block is used to process the incoming body data, ensure we’re keeping it for inspection later too.
- #old_write_to ⇒ Object
Instance Attribute Details
#stored_body ⇒ Object (readonly)
Returns the value of attribute stored_body.
21 22 23 |
# File 'lib/net/http/capture.rb', line 21 def stored_body @stored_body end |
Instance Method Details
#<<(str) ⇒ Object
If a block is used to process the incoming body data, ensure we’re keeping it for inspection later too
25 26 27 28 |
# File 'lib/net/http/capture.rb', line 25 def <<(str) (@stored_body ||= '') << str old_write_to(str) end |
#old_write_to ⇒ Object
23 |
# File 'lib/net/http/capture.rb', line 23 alias :old_write_to :<< |