Module proxy

Source
Expand description

A simple reverse-proxy implementation for onion services.

Structs§

OnionServiceReverseProxy
A reverse proxy that handles connections from an OnionService by routing them to local addresses.
State 🔒
Mutable part of an RProxy

Enums§

HandleRequestsError
An error that prevents further progress while processing requests.
RequestFailed 🔒
An error from a single attempt to handle an onion service request.

Functions§

copy_interactive 🔒
Copy all the data from reader into writer until we encounter an EOF or an error.
forward_connection 🔒
Try to open a connection to an appropriate local target using target_stream_future. If successful, try to report success on request and transmit data between the two stream indefinitely. On failure, close request.
run_action 🔒
Take the configured action from action on the incoming request request.