Class: EventMachine::HttpChunkHeader

Inherits:
Hash
  • Object
show all
Defined in:
lib/em-http/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Hash

from_array, #to_params

Instance Attribute Details

#http_chunk_sizeObject

When parsing chunked encodings this is set



65
66
67
# File 'lib/em-http/client.rb', line 65

def http_chunk_size
  @http_chunk_size
end

Instance Method Details

#chunk_sizeObject

Size of the chunk as an integer



68
69
70
71
# File 'lib/em-http/client.rb', line 68

def chunk_size
  return @chunk_size unless @chunk_size.nil?
  @chunk_size = @http_chunk_size ? @http_chunk_size.to_i(base=16) : 0
end