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

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

Overview

This is generated by server protocols.

Direct Known Subclasses

HTTP1::Request, HTTP2::Request

Instance Method Summary collapse

Instance Method Details

#connectionObject



20
21
22
# File 'lib/async/http/protocol/request.rb', line 20

def connection
	nil
end

#hijack?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/async/http/protocol/request.rb', line 24

def hijack?
	false
end

#inspectObject



45
46
47
# File 'lib/async/http/protocol/request.rb', line 45

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

#peerObject



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

def peer
	if connection = self.connection
		connection.peer
	end
end

#remote_addressObject



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

def remote_address
	@remote_address ||= peer.remote_address
end

#remote_address=(value) ⇒ Object



41
42
43
# File 'lib/async/http/protocol/request.rb', line 41

def remote_address= value
	@remote_address = value
end

#write_interim_response(status, headers = nil) ⇒ Object



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

def write_interim_response(status, headers = nil)
end