matthew-andrews / isomorphic-fetch

Isomorphic WHATWG Fetch API, for Node & Browserify
MIT License
6.95k stars 289 forks source link

easier way to send body for GET request? #126

Closed littlehome-eugene closed 7 years ago

littlehome-eugene commented 7 years ago

For post request, we could use javascript object as a data.

For get request, we need to transform the data into url params and append to the url.

Is there a easier (hopefully unified) way of sending POST/GET data to server when using isomorphic-fetch?

matthew-andrews commented 7 years ago

I think this is a fundamental question about the way HTTP itself is designed. I don't think I'm really qualified to answer it.

I found this thread on StackOverflow which seemed relevant and interesting:- http://stackoverflow.com/questions/978061/http-get-with-request-body