Skip to content

Add remove_all and remove_first to the urlencoded serializer - #1150

Open
ChrisJr404 wants to merge 1 commit into
servo:mainfrom
ChrisJr404:remove-query-pairs
Open

Add remove_all and remove_first to the urlencoded serializer#1150
ChrisJr404 wants to merge 1 commit into
servo:mainfrom
ChrisJr404:remove-query-pairs

Conversation

@ChrisJr404

Copy link
Copy Markdown

This adds remove_all and remove_first to the urlencoded Serializer, so Url::query_pairs_mut() can drop parameters by name without rebuilding the whole query by hand.

Names are matched after percent-decoding (the same way parse and query_pairs see them), and pairs that are kept keep their original serialization. This is the API shape suggested in #1087.

Closes #1087.

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.

feat: Remove or replace specific query parameters

1 participant