Request
public protocol Request
Abstract REST request protocol.
-
Undocumented
Declaration
Swift
associatedtype ResponseType : Decodable -
Undocumented
Declaration
Swift
associatedtype RequestType : Encodable -
methodDefault implementationThe HTTP Method of the request. Default:
.get.Default Implementation
Declaration
Swift
var method: HTTPMethod { get } -
suffixDefault implementationThe url suffix of the request. Default:
nilDefault Implementation
Declaration
Swift
var suffix: String? { get } -
headersDefault implementationAdditional headers for the request. Default:
nil.Default Implementation
Declaration
Swift
var headers: RequestHeaders? { get } -
parametersDefault implementationRequest parameters type. Default
nil.Default Implementation
Declaration
Swift
var parameters: RequestType? { get } -
parameterEncodingDefault implementationParameter encoding for the request. Default:
.urlin case of .get, .head HTTPMethod,.jsonin case of .post, .put, .delete, .patch HTTPMethodDefault Implementation
Declaration
Swift
var parameterEncoding: ParameterEncoding { get }
Request Protocol Reference