C# Class logv.http.ServerResponse

Inheritance: IDisposable, IServerResponse
Afficher le fichier Open project: coolya/logv.http

Protected Properties

Свойство Type Description
cached bool

Méthodes publiques

Méthode Description
Abort ( ) : IServerResponse

Aborts the request

AddCookie ( Cookie cookie ) : IServerResponse

Adds a Cookie

AddHeader ( string name, string value ) : IServerResponse

Adds a Header

Close ( ) : void

Closes the Response

Equals ( object obj ) : bool

Determines whether the specified System.Object is equal to this instance.

GetHashCode ( ) : int

Returns a hash code for this instance.

Redirect ( string url ) : IServerResponse

Redirects the specified URL.

ServerResponse ( HttpListenerResponse res ) : System

Initializes a new instance of the ServerResponse class.

ServerResponse ( IServerResponse res ) : System

Initializes a new instance of the ServerResponse class.

Private Methods

Méthode Description
Dispose ( ) : void

Method Details

Abort() public méthode

Aborts the request
public Abort ( ) : IServerResponse
Résultat IServerResponse

AddCookie() public méthode

Adds a Cookie
public AddCookie ( Cookie cookie ) : IServerResponse
cookie System.Net.Cookie The cookie to add
Résultat IServerResponse

AddHeader() public méthode

Adds a Header
public AddHeader ( string name, string value ) : IServerResponse
name string Name of the header
value string Value for the header
Résultat IServerResponse

Close() public méthode

Closes the Response
public Close ( ) : void
Résultat void

Equals() public méthode

Determines whether the specified System.Object is equal to this instance.
public Equals ( object obj ) : bool
obj object The to compare with this instance.
Résultat bool

GetHashCode() public méthode

Returns a hash code for this instance.
public GetHashCode ( ) : int
Résultat int

Redirect() public méthode

Redirects the specified URL.
public Redirect ( string url ) : IServerResponse
url string The URL.
Résultat IServerResponse

ServerResponse() public méthode

Initializes a new instance of the ServerResponse class.
public ServerResponse ( HttpListenerResponse res ) : System
res System.Net.HttpListenerResponse The res.
Résultat System

ServerResponse() public méthode

Initializes a new instance of the ServerResponse class.
public ServerResponse ( IServerResponse res ) : System
res IServerResponse The res.
Résultat System

Property Details

cached protected_oe property

The cached
protected bool cached
Résultat bool