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
.