Class: EventMachine::HttpChunkHeader
- Inherits:
-
Hash
- Object
- Hash
- EventMachine::HttpChunkHeader
- Defined in:
- lib/em-http/http_header.rb
Instance Attribute Summary collapse
-
#http_chunk_size ⇒ Object
When parsing chunked encodings this is set.
Instance Method Summary collapse
-
#chunk_size ⇒ Object
Size of the chunk as an integer.
-
#initialize ⇒ HttpChunkHeader
constructor
A new instance of HttpChunkHeader.
Constructor Details
#initialize ⇒ HttpChunkHeader
Returns a new instance of HttpChunkHeader.
61 62 63 64 |
# File 'lib/em-http/http_header.rb', line 61 def initialize super @http_chunk_size = '0' end |
Instance Attribute Details
#http_chunk_size ⇒ Object
When parsing chunked encodings this is set
59 60 61 |
# File 'lib/em-http/http_header.rb', line 59 def http_chunk_size @http_chunk_size end |
Instance Method Details
#chunk_size ⇒ Object
Size of the chunk as an integer
67 68 69 |
# File 'lib/em-http/http_header.rb', line 67 def chunk_size @http_chunk_size.to_i(base=16) end |