URL
struct URL : ReferenceConvertible, Equatable
The URL extension class adds support retrieving the authority.
-
The authority of the URL comprised of the scheme and host.
Declaration
Swift
public var authority: String? { get }
Return Value
The scheme and host component of the URL, otherwise it returns nil.