Expand description
A simple reverse-proxy implementation for onion services.
Structs§
- Onion
Service Reverse Proxy - A reverse proxy that handles connections from an
OnionService
by routing them to local addresses. - State 🔒
- Mutable part of an RProxy
Enums§
- Handle
Requests Error - An error that prevents further progress while processing requests.
- Request
Failed 🔒 - An error from a single attempt to handle an onion service request.
Functions§
- copy_
interactive 🔒 - Copy all the data from
reader
intowriter
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 onrequest
and transmit data between the two stream indefinitely. On failure, closerequest
. - run_
action 🔒 - Take the configured action from
action
on the incoming requestrequest
.