C# Класс Netty.HttpResponse

Provides a concrete implementation of the IHttpResponse interface based on a HttpListenerResponse.
Наследование: System.MarshalByRefObject, IHttpResponse, IDisposable
Показать файл Открыть проект Примеры использования класса

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

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