With node's http library this would look something like
var request = http.request(options);
request.setTimeout(milliseconds, callback);
However, I'm using the wrapper library request and don't see a way to add a callback on timeout.
I'm creating an API endpoint to make an http request and expose that data, and I would like to be able to render a null result if the request times out.