Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to launch a GET request via option param #145

Open
deqwin opened this issue Aug 28, 2017 · 1 comment
Open

How to launch a GET request via option param #145

deqwin opened this issue Aug 28, 2017 · 1 comment

Comments

@deqwin
Copy link

deqwin commented Aug 28, 2017

it looks so ugly when a GET request URL is attached with too many queries. How can I launch a GET request via option param?

@deqwin deqwin changed the title How to lauch a GET request via option params How to launch a GET request via option param Aug 29, 2017
@jimmywarting
Copy link

jimmywarting commented Jan 28, 2019

const url = new URL('https://example.com')
url.search = new URLSearchParams(opts) // 2d array (iterator) or key-val object

fetch(url)

can we close this?

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

No branches or pull requests

2 participants