Equivalent of window.location and window.pathname in NodeJS
<p>What is the equivalent to <code>window.location.protocol</code> and <code>window.location.host</code> in NodeJS/ExpressJS?</p>

<p>I'm trying to redirect the url back to my site using a third party API.</p>