Public Member Functions | |
constructor opts | |
open session | |
cleanup session | |
close session | |
read session data | |
write session | |
Public Member Functions inherited from tanzer::forwarder | |
constructor args | |
cleanup session | |
open session | |
close session | |
pipe in sock session | |
Additional Inherited Members | |
Static Public Attributes inherited from tanzer::forwarder | |
defaultStatus | |
The HTTP request forwarder. Forwards a tanzer::request message object to a remote HTTP service, unmodified; any request body provided by the inbound client is forwarded to the remote HTTP service.
tanzer::http::handler::constructor | opts | ||
The following values must be specified in a list of key-value pairs in $opts
.
host
The hostname or address of the remote HTTP service
port
The port number of the remote HTTP service
The mechanism by which this request handler functions is simple: It first opens a connection with the remote host, then sends the current request to the remote service. Then, the remote service's response is parsed into a new tanzer::response object, which is in turn sent to the originating client; thereafter, the response body is piped via [chan copy]
to the originating client.