-
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.
refactor: Represent query params as an array in order to allow multip…
…le params with the same key Some APIs want you to pass multiple values for the same key by duplicating the key value pair in the query string (`?type=one&type=two`). In order to support this, query params must be stored in something other than a map (which enforces key uniqueness). Other options like passing an array or list to a single key is not viable because other APIs choose to encode this into their APIs. In short, `?type=one,two`, `?type=['one','two']` and `?type=one&type=two` are all valid use cases depending on the API.
- Loading branch information
Showing
3 changed files
with
72 additions
and
24 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