HttpServer.HttpResponse.Redirect C# (CSharp) Method

Redirect() public method

Redirect client to somewhere else using the 302 status code.
You can not do anything more with the request when a redirect have been done. This should be your last action.
If headers already been sent.
public Redirect ( Uri uri ) : void
uri System.Uri Destination of the redirect
return void
        public void Redirect(Uri uri)
        {
            Status = HttpStatusCode.Redirect;
            _headers["location"] = uri.ToString();
        }

Same methods

HttpResponse::Redirect ( string url ) : void