replace type and remove unnecessary
This commit is contained in:
parent
4b908f1e32
commit
ffcec6e4de
|
|
@ -1,6 +0,0 @@
|
|||
protocol ParameterEncoding {
|
||||
associatedtype Location: ParameterLocation
|
||||
associatedtype Result
|
||||
|
||||
func encode(parameters: [String: Parameter<Location>]) -> Result
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@ public struct Request<Content: BodyContent> {
|
|||
public var requestBodyContent: Content
|
||||
public var queryParameters: [String: Parameter<LocationQuery>]
|
||||
public var pathParameters: [String: Parameter<LocationPath>]
|
||||
public var headerParameters: [KeyValueTuple<String, String>]
|
||||
public var headerParameters: HTTPHeaders?
|
||||
public var cookieParameters: [String: Parameter<LocationCookie>]
|
||||
public var acceptableStatusCodes: Set<Int>
|
||||
public var serverOverride: Server?
|
||||
|
|
@ -22,7 +22,7 @@ public struct Request<Content: BodyContent> {
|
|||
requestBodyContent: Content,
|
||||
queryParameters: [String: Parameter<LocationQuery>] = [:],
|
||||
pathParameters: [String: Parameter<LocationPath>] = [:],
|
||||
headerParameters: [KeyValueTuple<String, String>] = [],
|
||||
headerParameters: HTTPHeaders? = nil,
|
||||
cookieParameters: [String: Parameter<LocationCookie>] = [:],
|
||||
acceptableStatusCodes: Set<Int> = [200],
|
||||
serverOverride: Server? = nil,
|
||||
|
|
|
|||
Loading…
Reference in New Issue