Class: Async::HTTP::Protocol::Request

Inherits:
Protocol::HTTP::Request
  • Object
show all
Defined in:
lib/async/http/protocol/request.rb

Overview

An incoming HTTP request generated by server protocol implementations.

Direct Known Subclasses

HTTP1::Request, HTTP2::Request

Instance Method Summary collapse

Instance Method Details

#connectionObject



17
18
19
# File 'lib/async/http/protocol/request.rb', line 17

def connection
	nil
end

#hijack?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/async/http/protocol/request.rb', line 22

def hijack?
	false
end

#inspectObject



43
44
45
# File 'lib/async/http/protocol/request.rb', line 43

def inspect
	"#<#{self.class}:0x#{self.object_id.to_s(16)} method=#{method} path=#{path} version=#{version}>"
end

#peerObject



33
34
35
# File 'lib/async/http/protocol/request.rb', line 33

def peer
	self.connection&.peer
end

#remote_addressObject



38
39
40
# File 'lib/async/http/protocol/request.rb', line 38

def remote_address
	self.peer&.address
end

#write_interim_response(status, headers = nil) ⇒ Object

Write an interim (1xx) response back to the client.



29
30
# File 'lib/async/http/protocol/request.rb', line 29

def write_interim_response(status, headers = nil)
end