Class: Async::HTTP::Protocol::HTTP1::Response

Inherits:
Response show all
Defined in:
lib/async/http/protocol/http1/response.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, #partial?, #preserve_method?, #redirection?, #server_failure?, #success?, #to_s

Methods included from Body::Reader

#body?, #close, #each, #finish, #read, #save

Constructor Details

#initialize(protocol, request) ⇒ Response

Returns a new instance of Response.



28
29
30
31
32
# File 'lib/async/http/protocol/http1/response.rb', line 28

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