URLComponents

extension URLComponents: URLConvertible
  • Returns a URL if the self‘s url is not nil, otherwise throws.

    Throws

    An AFError.invalidURL instance.

    Declaration

    Swift

    public func asURL() throws -> URL

    Return Value

    The URL from the url property.