URL
public extension URL
extension URL: ExpressibleByStringLiteral
-
Returns if the URL is of type HTTP protocol.
Declaration
Swift
var isHTTPProtocol: Bool { get } -
Returns if the URL is of type HTTPS protocol.
Declaration
Swift
var isHTTPSProtocol: Bool { get } -
Returns if the URL contains the specified subDirectory.
Declaration
Swift
func contains(subDirectory: String) -> BoolParameters
subDirectoryThe subDirectory to look for.
-
Declaration
Swift
public init(unicodeScalarLiteral value: String) -
Declaration
Swift
public init(extendedGraphemeClusterLiteral value: String) -
Declaration
Swift
public init(stringLiteral value: StringLiteralType)
URL Extension Reference