NodeJs Difference between redirect and writeHead(303)
<p>Quick question:
Using Node.js and wanting to redirect a user what is the difference when using</p>

<pre><code>res.writeHead(303, {
                "Location": "/"
            });
res.end();
</code></pre>

<p>and</p>

<pre><code> res.redirect("/");
</code></pre>

<p>Is there any preferred method?</p>

<p>Thanks in advance.</p>