Skip to main content

Module proxy

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.

Constantsยง

STREAM_BUF_LEN ๐Ÿ”’
Size of buffer to use for communication between Arti and the target service.

Functionsยง

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.