BaseRequestable
public protocol BaseRequestable : Configurable, ResponseSerializable
Represents an abstract BaseRequestable
.
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(parameters:)
Extension methodUndocumented
Declaration
Swift
func asUrlRequest(parameters: Any? = nil) throws -> URLRequest
-
asUrlRequest(parameters:)
Extension methodUndocumented
Declaration
Swift
func asUrlRequest<T>(parameters: T) throws -> URLRequest where T : Encodable
-
asUrlRequest(parametersType:)
Extension methodCreates a
URLRequest
to retrieve the contents of a URL based on the specifiedRequestable
Declaration
Swift
func asUrlRequest<T>(parametersType: ParametersType<T>) throws -> URLRequest where T : Encodable
Return Value
The created
URLRequest
.