4 ms·
What is the command to load a json API? (Which requires to set the content-type header...)
by Frozenlock 11y ago
What is the command to load a json API? (Which requires to set the content-type header...)
- boucher 11y agoI recommend requiring "request-promise", which is a drop in replacement for "request". Here's the docs on sending custom HTTP headers with that package: https://www.npmjs.com/package/request#custom-http-headers https://www.npmjs.com/package/request#custom-http-headers
- Frozenlock 11y agoThanks!