C# Class EPiUtilities.Extensions.HttpResponseExtensions

Extension methods for HttpResponse objects.
Datei anzeigen Open project: JohannesOstensjo/EPiUtilities

Public Methods

Method Description
RedirectPermanent ( this response, string url ) : void

Redirects the response with a 301 redirect. This method has the same behavior as the HttpResponse method with the same name in .NET 4.0.

RedirectPermanent ( this response, string url, bool endResponse ) : void

Redirects the response with a 301 redirect. This method has the same behavior as the HttpResponse method with the same name in .NET 4.0.

ReturnXmlResponse ( this response, XmlDocument document ) : void

Returns the xml value of the XmlDocument as a xml response using UTF8. Ends the response after writing to the response stream.

Method Details

RedirectPermanent() public static method

Redirects the response with a 301 redirect. This method has the same behavior as the HttpResponse method with the same name in .NET 4.0.
public static RedirectPermanent ( this response, string url ) : void
response this
url string
return void

RedirectPermanent() public static method

Redirects the response with a 301 redirect. This method has the same behavior as the HttpResponse method with the same name in .NET 4.0.
public static RedirectPermanent ( this response, string url, bool endResponse ) : void
response this
url string
endResponse bool
return void

ReturnXmlResponse() public static method

Returns the xml value of the XmlDocument as a xml response using UTF8. Ends the response after writing to the response stream.
public static ReturnXmlResponse ( this response, XmlDocument document ) : void
response this
document System.Xml.XmlDocument
return void