HTTP.UnixSocket (http_fetch v0.9.0)
Unix Domain Socket support for HTTP requests.
HTTP.fetch/2 uses the same socket owner and HTTP/1.1 parser for Unix sockets
as it uses for TCP and TLS requests. This module remains as an internal
compatibility entry point for callers that already have an HTTP.Request.
Usage
HTTP.fetch("http://localhost/version", unix_socket: "/var/run/docker.sock")
Summary
Functions
Executes an HTTP request over a Unix Domain Socket.
Functions
@spec request(String.t(), HTTP.Request.t(), integer()) :: {:ok, HTTP.Response.t()} | {:error, term()}
Executes an HTTP request over a Unix Domain Socket.