Class: Async::HTTP::Protocol::HTTP11::Response

Inherits:
Response show all
Defined in:
lib/async/http/protocol/http11.rb

Instance Attribute Summary

Attributes inherited from Response

#protocol

Attributes inherited from Response

#body, #headers, #reason, #status, #version

Instance Method Summary collapse

Methods inherited from Response

#hijack?, #peer, #remote_address, #remote_address=

Methods inherited from Response

[], #bad_request?, #continue?, #failure?, for_exception, #preserve_method?, #redirection?, #server_failure?, #success?, #to_s

Methods included from Body::Reader

#close, #each, #finish, #read, #stop

Constructor Details

#initialize(protocol, request) ⇒ Response

Returns a new instance of Response.



154
155
156
157
158
# File 'lib/async/http/protocol/http11.rb', line 154

def initialize(protocol, request)
	super(*protocol.read_response(request))
	
	@protocol = protocol
end