Send HTTP 3xx redirections in node.js.
Send HTTP 3xx redirections is node.js.
Written in CoffeeScript.
npm install http3xx
From the source:
These functions all accept a res argument, which is an
http.ServerResponse object. For those functions that accept a url argument, url is meant to be an absolute URI. Do not pass through a relative URI. Although it would likely work, that would be in violation of RFC 2616.
return http3xxmovedPermanentlyres '';;return http3xxfoundres '';;return http3xxseeOtherres '';;return http3xxnotModifiedres; // 304;return http3xxuseProxyres 'my-proxy-server:305';;return http3xxtemporaryRedirectres '';;