DefaultValue
public enum DefaultValue
Default values for request parameters.
Default values are declared here so they are consistent between the Request<Response>
type and the RequestType
protocol.
-
The
GET
method.Declaration
Swift
public static let method: HTTPMethod
-
An empty array of query items.
Declaration
Swift
public static let queryItems: [URLQueryItem]
-
The
useProtocolCachePolicy
.Declaration
Swift
public static let cachePolicy: NSURLRequest.CachePolicy
-
60 seconds.
Declaration
Swift
public static let timeout: TimeInterval
-
A
none
body provider.Declaration
Swift
public static let bodyProvider: BodyProvider
-
A
none
authentication provider.Declaration
Swift
public static let authenticationProvider: AuthenticationProvider