- Notifications
You must be signed in to change notification settings - Fork1.2k
Description
Subsystem
ktor-client, ktor-http/common
Is your feature request related to a problem? Please describe.
ktor-client cannot be used for URLs which are not supported by the URL Encoding format.
I failed to replace an HTTP client with ktor-client just because we needed to call a URL like/api?k1=v1;k1=v2
(non-encoded;
instead of%3B
). As far as I checked, there's no way to bypass URL Encoding in ktor-client.
In other libraries, typically we can set parameters just like a simpleMap<String, List<String>>
. I agree that it's better to always use a sanitized request object, but it would be too strict not to have an option to disable encoding.
Describe the solution you'd like
I openeda PR to add an option to bypass the URL Encoding when building a URL.
Motivation to include to ktor
I believe that users of ktor-client shouldn't be blocked by the implementation of a server URL because they might not have control over it.
(Please let me know if there's an option to resolve the above problem.)