Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Frozenlock
on Aug 18, 2015
|
parent
|
context
|
favorite
| on:
Show HN: Tonic – A data visualizing REPL for Node....
What is the command to load a json API? (Which requires to set the content-type header...)
boucher
on Aug 18, 2015
[–]
I 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
Frozenlock
on Aug 18, 2015
|
parent
[–]
Thanks!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: