Skip to content

form-urlencoded: Allow to encode key parameters without a values #547

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

Closed
wants to merge 3 commits into from

Conversation

Argentumbolo
Copy link
Contributor

@Argentumbolo Argentumbolo commented Sep 16, 2019

According to #546
Add methods:
- Serializer::append_key_only(&mut self, name: &str) -> &mut Self;
- Serializer::extend_keys_only<I, K>(&mut self, iter: I) -> &mut Self;
in order to allow query parameters without a values like:
- https://example.org/exchange?date=20190915&json
- https://example.org/exchange?date=20190915&xml
- https://example.org/exchange?date=20190915&bin


This change is Reviewable

Add methods:
    - Serializer<UrlQuery>::append_key_only(&mut self, name: &str) -> &mut Self;
    - Serializer<UrlQuery>::extend_keys_only<I, K>(&mut self, iter: I) -> &mut Self;
in order to allow query parameters without a values like:
    - https://example.org/exchange?date=20190915&json
    - https://example.org/exchange?date=20190915&xml
    - https://example.org/exchange?date=20190915&bin
@bors-servo
Copy link
Contributor

☔ The latest upstream changes (presumably #607) made this pull request unmergeable. Please resolve the merge conflicts.

@djc
Copy link
Contributor

djc commented Aug 25, 2020

Rebased this as 47b6555 and merged to master. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants