We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7911a25 commit 4cc975dCopy full SHA for 4cc975d
1 file changed
README.md
@@ -14,6 +14,17 @@ print(encoder.queryItems)
14
// [URLQueryItem(name: "id", value: "5")]
15
```
16
17
+By default, optional values are not encoded.
18
+
19
+```swift
20
+var id: Int?
21
+let encoder = URLQueryEncoder()
22
+encoder.encode(id, forKey: "id")
23
24
+print(encoder.queryItems)
25
+// []
26
+```
27
28
### Encoding Arrays
29
30
```swift
0 commit comments