The URL to redirect to
Redirection status to use (by default this is HTTPStatus.found).
Returns a HTTPServerRequestDelegate that performs the redirect
import vibe.http.router; void test() { auto router = new URLRouter; router.get("/old_url", staticRedirect("http://example.org/new_url", HTTPStatus.movedPermanently)); listenHTTP(new HTTPServerSettings, router); }
Provides a HTTP request handler that responds with a static redirection to the specified URL.