[][src]Crate hyper_socket

This crate provides an instance of [Connect] which communicates over a local Unix Domain Socket rather than TCP.

Numerous system daemons expose such sockets but use HTTP in order to unify their local and remote RPC APIs (such as Consul). This connector is a mean to communicate with those services.

NB: As sockets are named by a file path and not a DNS name, the hostname of any requests are not used for initiating a connection-- all requests, regardless of the intended destination, are routed to the same socket.

Structs

UnixSocketConnection

A wrapper around Tokio's UnixStream type, implementing Connection.

UnixSocketConnector

A connector to a local Unix Domain Socket which uses HTTP as the application-layer protocol.