C# Класс EPiUtilities.Extensions.HttpResponseExtensions

Extension methods for HttpResponse objects.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

RedirectPermanent() публичный статический Метод

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
Результат void

RedirectPermanent() публичный статический Метод

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
Результат void

ReturnXmlResponse() публичный статический Метод

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
Результат void