method Resource.prototype.redirectimport { Resource } from "https://deno.land/x/drash@v2.7.0/src/http/resource.ts"; redirect(location: string,response: Drash.Response,status?,headers?: Drash.Types.HttpHeadersKeyValuePairs,): voidRedirect the incoming request to another resource ExamplesExample 1 this.redirect("http://localhost/login", response); this.redirect("http://localhost/login", response, 301); this.redirect("http://localhost/login", response, 301, {"some-header": "some value"}); Parameterslocation: string The location or resource uri of where you want to redirect the request to response: Drash.Response The response object, to set the related headers and status code on optionalstatus = [UNSUPPORTED] (optional) The response status. Defaults to 302. optionalheaders: Drash.Types.HttpHeadersKeyValuePairs = [UNSUPPORTED] (optional) Any extra headers to specify with the response. Defaults to an empty object. Returnsvoid