mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
add auxiliar httpresponse.Redirect(string url, [HttpStatusCode redirStatusCode = HttpStatusCode.Redirect])
This commit is contained in:
@@ -119,6 +119,13 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
|
||||
double RequestTS { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Set response as a http redirect
|
||||
/// </summary>
|
||||
/// <param name="url">redirection target url</param>
|
||||
/// <param name="redirStatusCode">the response Status, must be Found, Redirect, Moved,MovedPermanently,RedirectKeepVerb, RedirectMethod, TemporaryRedirect. Defaults to Redirect</param>
|
||||
void Redirect(string url, HttpStatusCode redirStatusCode = HttpStatusCode.Redirect);
|
||||
|
||||
/// <summary>
|
||||
/// Add a header field and content to the response.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user