On Sat, 31 May 2014 22:27:43 GMT, w0rp wrote:

What is the easiest way to perform 301 redirects directly in vibe.d? 301 redirects are small and easy for browsers and search engines to deal with appropriately, and essential for SEO when pages change location on a permanent basis. Equallly 302 redirects would be nice to do also.

I think I'd like something like permanentRedirect and temporaryRedirect functions which do the right things, and documentation which explains the functionality clearly.

HTTPServerResponse.redirect takes a status parameter to set a custom status. staticRedirect didn't do so far, but I've added one plus some better documentation in cbf3bfa.