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
protocolThe protocol, http or https, of the url.
hostThe host of the url.
portThe port of the url.
pathThe path of the url. Should begin with a
/.queryThe query of the url. Should contain the
?. -
Undocumented
See moreDeclaration
Swift
enum `Protocol` : String
View on GitHub
MappingLocation Structure Reference