MappingLocation

public struct MappingLocation

A mapping location describes a given part of a url. The mapping location can be used to either filter urls, or to apply changes on the url.

  • Instantiates a new MappingLocation.

    Declaration

    Swift

    public init(protocol: Protocol? = nil, host: String? = nil, port: Int? = nil, path: String? = nil, query: String? = nil)

    Parameters

    protocol

    The protocol, http or https, of the url.

    host

    The host of the url.

    port

    The port of the url.

    path

    The path of the url. Should begin with a /.

    query

    The query of the url. Should contain the ?.

  • Undocumented

    See more

    Declaration

    Swift

    enum `Protocol` : String