DEV Community

Discussion on: Create an awesome JS API interface using Fetch (in less than 50 lines)

Collapse
 
mvasigh profile image
Mehdi Vasigh • Edited

You need to make sure you're encoding your query parameters as URI components :) nice article!

Next steps I would take to expand this would be thinking about how you can allow headers to be configured on a per request basis, adding things like interceptors and support for form-data requests, canceling requests, and so on.