Merge pull request #280 from TouchInstinct/feature/recovery_files_and_remove_unnecessary

recovery files and remove unnecessary
This commit is contained in:
Ilya 2021-08-06 17:37:35 +03:00 committed by GitHub
commit 252e00198f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 13 deletions

View File

@ -1,13 +0,0 @@
open class HeadersParameterEncoding {
public let sequenceSeparator: String
public init(sequenceSeparator: String = ";") {
self.sequenceSeparator = sequenceSeparator
}
open func encode(parameters: [KeyValueTuple<String, String>]) -> [String: String] {
Dictionary(parameters) {
$0 + sequenceSeparator + $1
}
}
}

View File

@ -0,0 +1,6 @@
protocol ParameterEncoding {
associatedtype Location: ParameterLocation
associatedtype Result
func encode(parameters: [String: Parameter<Location>]) -> Result
}