There are several solid implementations of URLEncodedForm encoding/decoding floating around the Swift ecosystem. They currently exist in Hummingbird, Alamofire, Vapor, and the legacy Vapor URL-encoded form repo, plus a handful of community forks derived from Vapor's original implementation. This makes it difficult to benefit from one of these types without bundling an entire framework.
I'm curious if anyone in the community has encountered a similar issue and thinks that we should move to either:
-
A dedicated target within an existing package that can be depended on without pulling in the full framework, or
-
A separate standalone repo/package focused solely on
URLEncodedFormencoding/decoding
Personally, I feel that this is a similar need to JSONEncoder/JSONDecoder. It seems strange to have separate implementations that all have the same goal when URL encoded forms (RFC 3986) is a widely accepted standard.
Right now, developers in those situations are left choosing between pulling in a heavy framework dependency, maintaining a fork, or rolling their own. A clean, standalone package would fill this gap. It also minimizes the security risk of different versions of the URLEncodedForm floating around, which I imagine is generally less likely from a security perspective.
Please let me know thoughts. Thanks!