C# Class Universe.Framework.Servers.HttpServer.Implementation.OSHttpResponse

OSHttpResponse is the Universe representation of an HTTP response.
显示文件 Open project: Virtual-Universe/Virtual-Universe Class Usage Examples

Protected Properties

Property Type Description
_httpResponse System.Net.HttpListenerResponse

Public Methods

Method Description
AddCookie ( System cookie ) : void
AddHeader ( string key, string value ) : void

Add a header field and content to the response.

OSHttpResponse ( HttpListenerContext context ) : System.Net

Method Details

AddCookie() public method

public AddCookie ( System cookie ) : void
cookie System
return void

AddHeader() public method

Add a header field and content to the response.
public AddHeader ( string key, string value ) : void
key string /// string containing the header field /// name ///
value string /// string containing the header field /// value ///
return void

OSHttpResponse() public method

public OSHttpResponse ( HttpListenerContext context ) : System.Net
context System.Net.HttpListenerContext
return System.Net

Property Details

_httpResponse protected_oe property

protected HttpListenerResponse,System.Net _httpResponse
return System.Net.HttpListenerResponse