C# 클래스 EPiUtilities.Extensions.HttpResponseExtensions

Extension methods for HttpResponse objects.
파일 보기 프로젝트 열기: JohannesOstensjo/EPiUtilities

공개 메소드들

메소드 설명
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