Support for query params
See original GitHub issueThis would solve…
Supporting query params would decrease amount of boilerplate code that developers need to write
The implementation should look like…
const { statusCode, headers, trailers, body } = await request("localhost:8080/", {
method: 'GET',
params: {
pageNum: 1,
pageSize: 10
}
})
I have also considered…
Embedding query params directly into the URL, but it is very cumbersome or requires writing a wrapper in every project.
Additional context
If this is approved, I can contribute a PR.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Query Parameters - Branch.io
Query parameters are a defined set of parameters attached to the end of a url. They are extensions of the URL that are...
Read more >What are Query Parameters (in API terms) - RapidAPI
API Query parameters can be defined as the optional key-value pairs that appear after the question mark in the URL. Basically, they are...
Read more >Query Parameters - Routing - Ember Guides
Common use cases for query params include representing the current page number in a paginated collection, filter criteria, or sorting criteria. In web ......
Read more >Query Parameters - FastAPI
Editor support (obviously); Data "parsing"; Data validation; Automatic documentation. Defaults¶. As query parameters are not a fixed part of a path ...
Read more >Query string - Wikipedia
A query string is a part of a uniform resource locator (URL) that assigns values to specified parameters. A query string commonly includes...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I don’t mind it as long as it doesn’t add too much complexity and edge cases.
go for it!