Expand description
hyperlocal-with-windows
provides Hyper bindings
for Unix domain sockets.
See the examples for how to configure a client or a server.
§Features
-
Client- enables the client extension trait and connector. Enabled by default.
-
Server- enables the server extension trait. Enabled by default.
Structs§
- Common
Unix Listener - A cross-platform wrapper around a
tokio::net::UnixListener
or a Windows equivalent. Using this type allows code using Unix sockets to be written once and run on both Unix and Windows. - Unix
Connector - the
[UnixConnector]
can be used to construct a[hyper::Client]
which can speak to a unix domain socket. - Unix
Stream - Wrapper around
tokio::net::UnixStream
. - Uri
- A convenience type that can be used to construct Unix Domain Socket URIs
Traits§
- Unix
Client Ext - Extension trait for constructing a hyper HTTP client over a Unix domain socket.
- Unix
Listener Ext - Extension trait for provisioning a hyper HTTP server over a Unix domain socket.
Functions§
- remove_
unix_ socket_ if_ present - Helper function to delete a Unix socket if it exists. This function correctly handles Unix sockets on Windows which need to be handled specially.