Skip to content
This repository was archived by the owner on Oct 17, 2021. It is now read-only.

URLConvertible

mattt edited this page Sep 18, 2020 · 2 revisions

URLConvertible

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

public protocol URLConvertible

Requirements

asURL()

Returns a URL from the conforming instance or throws.

func asURL() throws -> URL

Throws

Any error thrown while creating the URL.

Returns

The URL created from the instance.

Types
Protocols
Global Typealiases
Clone this wiki locally