-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow adding multiple query params with the same key.
On the backs of 2cb963e, this commit documents the methods to use to `append` new query params without overwriting the existing values with the same key. BREAKING CHANGE: The `getQueryParams` and `setQueryParams` methods have changed to represent the new internal structure of query params in Hyper. These now are represented internally as an array of structs to support duplicate keys in query strings. You _probably_ want the `getQueryParamByName` and `getAllQueryParamsByName` instead of `getQueryParams` and `withQueryParams` or `appendQueryParams` methods instead of `setQueryParams`. One more item of note, the `getQueryParam`\ method has been deprecated in favor of `getQueryParamByName`.
- Loading branch information
Showing
3 changed files
with
130 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters