Class: Async::HTTP::Protocol::Request
- Inherits:
-
Protocol::HTTP::Request
- Object
- Protocol::HTTP::Request
- Async::HTTP::Protocol::Request
show all
- Defined in:
- lib/async/http/protocol/request.rb
Overview
An incoming HTTP request generated by server protocol implementations.
Instance Method Summary
collapse
Instance Method Details
#connection ⇒ Object
17
18
19
|
# File 'lib/async/http/protocol/request.rb', line 17
def connection
nil
end
|
#hijack? ⇒ Boolean
22
23
24
|
# File 'lib/async/http/protocol/request.rb', line 22
def hijack?
false
end
|
#inspect ⇒ Object
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
|
#peer ⇒ Object
33
34
35
|
# File 'lib/async/http/protocol/request.rb', line 33
def peer
self.connection&.peer
end
|
#remote_address ⇒ Object
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, = nil)
end
|