C# Class EPiUtilities.Extensions.HttpResponseExtensions

Extension methods for HttpResponse objects.
Afficher le fichier Open project: JohannesOstensjo/EPiUtilities

Méthodes publiques

Méthode 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 méthode

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
Résultat void

RedirectPermanent() public static méthode

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
Résultat void

ReturnXmlResponse() public static méthode

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
Résultat void