C# 클래스 Netty.HttpResponse

Provides a concrete implementation of the IHttpResponse interface based on a HttpListenerResponse.
상속: System.MarshalByRefObject, IHttpResponse, IDisposable
파일 보기 프로젝트 열기: Cayan-LLC/netty 1 사용 예제들

공개 메소드들

메소드 설명
AddHeader ( string name, string value ) : void

Adds the specified header and value to the HTTP headers for this response.

AppendHeader ( string name, string value ) : void

Appends a value to the specified HTTP header to be sent with this response.

ClearOutputStream ( ) : void

Clears the output stream.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

FlushResponse ( ) : void

Flushes all data in the instance to the underlying HttpListenerResponse.

HttpResponse ( HttpListenerResponse response ) : System

Initializes a new instance of the HttpResponse class.

Redirect ( string url ) : void

Configures the response to redirect the client to the specified URL.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

비공개 메소드들

메소드 설명
InitializeLifetimeService ( ) : object

메소드 상세

AddHeader() 공개 메소드

Adds the specified header and value to the HTTP headers for this response.
public AddHeader ( string name, string value ) : void
name string The name of the HTTP header to set.
value string The value for the name header.
리턴 void

AppendHeader() 공개 메소드

Appends a value to the specified HTTP header to be sent with this response.
public AppendHeader ( string name, string value ) : void
name string The name of the HTTP header to append value to.
value string The value to append to the name header.
리턴 void

ClearOutputStream() 공개 메소드

Clears the output stream.
public ClearOutputStream ( ) : void
리턴 void

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool /// true to release both managed and unmanaged resources; false to release only unmanaged resources. ///
리턴 void

FlushResponse() 공개 메소드

Flushes all data in the instance to the underlying HttpListenerResponse.
public FlushResponse ( ) : void
리턴 void

HttpResponse() 공개 메소드

Initializes a new instance of the HttpResponse class.
public HttpResponse ( HttpListenerResponse response ) : System
response System.Net.HttpListenerResponse The response.
리턴 System

Redirect() 공개 메소드

Configures the response to redirect the client to the specified URL.
public Redirect ( string url ) : void
url string The URL that the client should use to locate the requested resource.
리턴 void