Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add methods to KiwiUrls to convert maps to URL-encoded query parameters #623

Closed
sleberknight opened this issue Nov 7, 2021 · 0 comments · Fixed by #625
Closed

Add methods to KiwiUrls to convert maps to URL-encoded query parameters #623

sleberknight opened this issue Nov 7, 2021 · 0 comments · Fixed by #625
Assignees
Labels
new feature A new feature such as a new class, method, package, group of classes, etc.
Milestone

Comments

@sleberknight
Copy link
Member

sleberknight commented Nov 7, 2021

KiwiUrls#toQueryString converts a map into a query string, but does not perform encoding on the parameters.

Add new methods to KiwiUrls that convert a map into a query string and URL-encode the parameters.

Example method signatures:

// uses UTF-8 encoding
public static <V> String toEncodedQueryString(Map<String, V> parameters) 

// uses specified encoding
public static <V> String toEncodedQueryString(Map<String, V> parameters, String encoding)
public static <V> String toEncodedQueryString(Map<String, V> parameters, Charset encoding)
@sleberknight sleberknight added the new feature A new feature such as a new class, method, package, group of classes, etc. label Nov 7, 2021
@sleberknight sleberknight added this to the 1.1.0 milestone Nov 7, 2021
@sleberknight sleberknight self-assigned this Nov 7, 2021
@sleberknight sleberknight added the in progress A task that is actively being worked on label Nov 7, 2021
sleberknight added a commit that referenced this issue Nov 7, 2021
* Add three overloaded toEncodedQueryString methods to KiwiUrls

Closes #623
sleberknight added a commit that referenced this issue Nov 7, 2021
* Add three overloaded toEncodedQueryString methods to KiwiUrls

Closes #623
@sleberknight sleberknight removed the in progress A task that is actively being worked on label Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature A new feature such as a new class, method, package, group of classes, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant