unix_socket
Module: interceptor::unix_socket
Section titled “Module: interceptor::unix_socket”Contents
Section titled “Contents”Structs
UnixSocketInterceptor- Unix domain socket interceptor.
firma_sidecar::interceptor::unix_socket::UnixSocketInterceptor
Section titled “firma_sidecar::interceptor::unix_socket::UnixSocketInterceptor”Struct
Unix domain socket interceptor.
Accepts a PathBuf pointing to the socket file and
manages the full bind / listen / accept / cleanup cycle. Incoming HTTP
requests are parsed into
RawRequest values and handled through
the RequestHandler provided
in Interceptor::run.
Malformed requests that cannot be parsed into a valid RawRequest are
rejected with a structured DENY carrying reason MALFORMED_REQUEST
(fail-closed).
Methods:
fn new(path: PathBuf) -> Self- Create a new [UnixSocketInterceptor] with the given socket path.
Trait Implementations:
- From
fn from(path: &Path) -> Self
- Interceptor
fn run(self: Self, handler: Arc<RequestHandler>, cancel: CancellationToken) -> Result<(), InterceptorError>
- From
fn from(path: PathBuf) -> Self