C# Class logv.http.ServerResponse

Inheritance: IDisposable, IServerResponse
Datei anzeigen Open project: coolya/logv.http

Protected Properties

Property Type Description
cached bool

Public Methods

Method 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

Method Description
Dispose ( ) : void

Method Details

Abort() public method

Aborts the request
public Abort ( ) : IServerResponse
return IServerResponse

AddCookie() public method

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

AddHeader() public method

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

Close() public method

Closes the Response
public Close ( ) : void
return void

Equals() public method

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

GetHashCode() public method

Returns a hash code for this instance.
public GetHashCode ( ) : int
return int

Redirect() public method

Redirects the specified URL.
public Redirect ( string url ) : IServerResponse
url string The URL.
return IServerResponse

ServerResponse() public method

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

ServerResponse() public method

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

Property Details

cached protected_oe property

The cached
protected bool cached
return bool