Class: DumbHttp::BaseMessage
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- DumbHttp::BaseMessage
- Defined in:
- lib/binproxy/parsers/dumb_http.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#body_len ⇒ Object
13 14 15 |
# File 'lib/binproxy/parsers/dumb_http.rb', line 13 def body_len (headers.snapshot.grep(/\AContent-Length: (\d+)/) { $1.to_i }).first || 0 end |
#summary ⇒ Object
17 |
# File 'lib/binproxy/parsers/dumb_http.rb', line 17 def summary; headers.first.sub(/HTTP\/\d\.\d/,'').strip; end |