URLComponents

struct URLComponents : ReferenceConvertible, Hashable, Equatable
  • Returns a URL if url is not nil, otherise throws an Error.

    Throws

    An AFError.invalidURL if url is nil.

    Declaration

    Swift

    public func asURL() throws -> URL