Skip to content

unix_socket

Structs


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