Back to Alamofire

URLConvertible

docs/Protocols/URLConvertible.html

5.12.0482 B
Original Source

URLConvertible

public protocol URLConvertible : Sendable

Types adopting the URLConvertible protocol can be used to construct URLs, which can then be used to construct URLRequests.

`

                asURL()
                `

Returns a URL from the conforming instance or throws.

Throws

Any error thrown while creating the URL.

Declaration

Swift

func asURL() throws -> URL

Return Value

The URL created from the instance.