RestingRequestConverter
public class RestingRequestConverter : RequestConverter
x
A RequestConverter
that supports:
- Path templating using GRMustache.swift
- Streamed requests
-
Errors thrown by
See moreRestingRequestConverter
.Declaration
Swift
public enum Error : Swift.Error
-
The configuration settings for
See moreRestingRequestConverter
.Declaration
Swift
public struct Configuration
-
The configuration for the instance.
Declaration
Swift
public let configuration: Configuration
-
Creates a new
RestingRequestConverter
.Declaration
Swift
public init(configuration: Configuration = Configuration())
Parameters
configuration
The configuration to use for the converter
-
Converts a
RestingRequest
to anHTTPRequest
.Declaration
Swift
public func toHTTPRequest<RequestType, ResponseType> (_ request: RestingRequest<RequestType, ResponseType>, baseUrl: String, forUpload: Bool ) throws -> HTTPRequest where RequestType: Encodable, ResponseType: Decodable