_Requestable
public protocol _Requestable : Configurable, ResponseSerializable
Represents an abstract _Requestable
.
Instead implement Requestable, Downloadable, FileUploadable, DataUploadable, StreamUploadable, MultipartUplodable protocols.
-
path
Default implementationThe path relative to base URL.
Default Implementation
nil
Declaration
Swift
var path: String? { get }
-
asUrlRequest()
Extension methodCreates a
URLRequest
to retrieve the contents of a URL based on the specifiedRequestable
Declaration
Swift
func asUrlRequest() throws -> URLRequest
Return Value
The created
URLRequest
.