Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add an option to disable URL Encoding #1351

Closed
@uharaqo

Description

@uharaqo

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.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp