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

    socketPath

    The path to the unix domain socket to connect to.

    uri

    The 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

    socketPath

    The path to the unix domain socket to connect to.

    uri

    The URI path and query that will be sent to the server.