URL
extension URL
-
Initializes a newly created HTTP URL connecting to a unix domain socket path. The socket path is encoded as the URL’s host, replacing percent encoding invalid path characters, and will use the “http+unix” scheme.
Declaration
Swift
public init?(httpURLWithSocketPath socketPath: String, uri: String = "/")Parameters
socketPathThe path to the unix domain socket to connect to.
uriThe URI path and query that will be sent to the server.
-
Initializes a newly created HTTPS URL connecting to a unix domain socket path over TLS. The socket path is encoded as the URL’s host, replacing percent encoding invalid path characters, and will use the “https+unix” scheme.
Declaration
Swift
public init?(httpsURLWithSocketPath socketPath: String, uri: String = "/")Parameters
socketPathThe path to the unix domain socket to connect to.
uriThe URI path and query that will be sent to the server.
View on GitHub
Install in Dash
URL Extension Reference