Class: Rev::HttpChunkHeader
- Inherits:
-
Hash
- Object
- Hash
- Rev::HttpChunkHeader
- Defined in:
- lib/rev/http_client.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.
Instance Attribute Details
#http_chunk_size ⇒ Object
When parsing chunked encodings this is set
41 42 43 |
# File 'lib/rev/http_client.rb', line 41 def http_chunk_size @http_chunk_size end |
Instance Method Details
#chunk_size ⇒ Object
Size of the chunk as an integer
44 45 46 47 |
# File 'lib/rev/http_client.rb', line 44 def chunk_size return @chunk_size unless @chunk_size.nil? @chunk_size = @http_chunk_size ? @http_chunk_size.to_i(base=16) : 0 end |