We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c6c63c commit 07e1daeCopy full SHA for 07e1dae
1 file changed
Sources/SimpleHTTP/DataCoder/FormURL/FormURLEncoder.swift
@@ -3,11 +3,9 @@ import Foundation
3
public struct FormURLEncoder: ContentDataEncoder {
4
public static let contentType: HTTPContentType = .formURLEncoded
5
6
- public init() {
+ public init() { }
7
8
- }
9
-
10
- public func encode<T: Encodable>(_ value: T) throws -> Data {
+ public func encode(_ value: some Encodable) throws -> Data {
11
let encoder = FormKeyValueEncoder()
12
try value.encode(to: encoder)
13
0 commit comments