lib/em-http/http_header.rb in em-http-request-0.3.0 vs lib/em-http/http_header.rb in em-http-request-1.0.0.beta.1
- old
+ new
@@ -39,11 +39,11 @@
# Is the transfer encoding chunked?
def chunked_encoding?
/chunked/i === self[HttpClient::TRANSFER_ENCODING]
end
- def keep_alive?
+ def keepalive?
/keep-alive/i === self[HttpClient::KEEP_ALIVE]
end
def compressed?
/gzip|compressed|deflate/i === self[HttpClient::CONTENT_ENCODING]
@@ -51,21 +51,6 @@
def location
self[HttpClient::LOCATION]
end
end
-
- class HttpChunkHeader < Hash
- # When parsing chunked encodings this is set
- attr_accessor :http_chunk_size
-
- def initialize
- super
- @http_chunk_size = '0'
- end
-
- # Size of the chunk as an integer
- def chunk_size
- @http_chunk_size.to_i(base=16)
- end
- end
-end
\ No newline at end of file
+end