







Redirect client to somewhere else using the 302 status code.
Namespace:
HttpServer
Assembly:
HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public void Redirect( Uri uri ) |
| Visual Basic (Declaration) |
|---|
Public Sub Redirect ( _ uri As Uri _ ) |
| Visual C++ |
|---|
public: void Redirect( Uri^ uri ) |
Parameters
- uri
- Type: System..::.Uri
Destination of the redirect
Remarks
You can not do anything more with the request when a redirect have been done. This should be your last
action.
Exceptions
| Exception | Condition |
|---|---|
| System..::.InvalidOperationException | If headers already been sent. |
