question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for query params

See original GitHub issue

This 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:closed
  • Created a year ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ronagcommented, May 18, 2022

I don’t mind it as long as it doesn’t add too much complexity and edge cases.

2reactions
mcollinacommented, May 18, 2022

go for it!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found