OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Properties | List of all members
OpenSim.Tests.Common.TestOSHttpResponse Class Reference
Inheritance diagram for OpenSim.Tests.Common.TestOSHttpResponse:
Inheritance graph
[legend]
Collaboration diagram for OpenSim.Tests.Common.TestOSHttpResponse:
Collaboration graph
[legend]

Public Member Functions

void AddHeader (string key, string value)
 Add a header field and content to the response. More...
 
void Send ()
 

Properties

string ContentType [get, set]
 Content type property. More...
 
long ContentLength [get, set]
 Boolean property indicating whether the content type property actively has been set. More...
 
long ContentLength64 [get, set]
 Alias for ContentLength. More...
 
Encoding ContentEncoding [get, set]
 Encoding of the body content. More...
 
bool KeepAlive [get, set]
 
int KeepAliveTimeout [get, set]
 Get or set the keep alive timeout property (default is 20). Setting this to 0 also disables KeepAlive. Setting this to something else but 0 also enable KeepAlive. More...
 
Stream OutputStream [get, set]
 Return the output stream feeding the body. More...
 
string ProtocolVersion [get, set]
 
Stream Body [get, set]
 Return the output stream feeding the body. More...
 
string RedirectLocation [get, set]
 Set a redirct location. More...
 
bool SendChunked [get, set]
 Chunk transfers. More...
 
int StatusCode [get, set]
 HTTP status code. More...
 
string StatusDescription [get, set]
 HTTP status description. More...
 
bool ReuseContext [get, set]
 
- Properties inherited from OpenSim.Framework.Servers.HttpServer.IOSHttpResponse
string ContentType [get, set]
 Content type property. More...
 
long ContentLength [get, set]
 Boolean property indicating whether the content type property actively has been set. More...
 
long ContentLength64 [get, set]
 Alias for ContentLength. More...
 
Encoding ContentEncoding [get, set]
 Encoding of the body content. More...
 
bool KeepAlive [get, set]
 
int KeepAliveTimeout [get, set]
 Get or set the keep alive timeout property (default is 20). Setting this to 0 also disables KeepAlive. Setting this to something else but 0 also enable KeepAlive. More...
 
Stream OutputStream [get]
 Return the output stream feeding the body. More...
 
string ProtocolVersion [get, set]
 
Stream Body [get]
 Return the output stream feeding the body. More...
 
string RedirectLocation [set]
 Set a redirct location. More...
 
bool SendChunked [get, set]
 Chunk transfers. More...
 
int StatusCode [get, set]
 HTTP status code. More...
 
string StatusDescription [get, set]
 HTTP status description. More...
 
bool ReuseContext [get, set]
 

Detailed Description

Definition at line 37 of file TestOSHttpResponse.cs.

Member Function Documentation

void OpenSim.Tests.Common.TestOSHttpResponse.AddHeader ( string  key,
string  value 
)
inline

Add a header field and content to the response.

Parameters
keystring containing the header field name
valuestring containing the header field value

Implements OpenSim.Framework.Servers.HttpServer.IOSHttpResponse.

Definition at line 129 of file TestOSHttpResponse.cs.

void OpenSim.Tests.Common.TestOSHttpResponse.Send ( )
inline

Definition at line 131 of file TestOSHttpResponse.cs.

Property Documentation

Stream OpenSim.Tests.Common.TestOSHttpResponse.Body
getset

Return the output stream feeding the body.

Definition at line 98 of file TestOSHttpResponse.cs.

Encoding OpenSim.Tests.Common.TestOSHttpResponse.ContentEncoding
getset

Encoding of the body content.

Definition at line 74 of file TestOSHttpResponse.cs.

long OpenSim.Tests.Common.TestOSHttpResponse.ContentLength
getset

Boolean property indicating whether the content type property actively has been set.

IsContentTypeSet will go away together with .NET base.

Length of the body content; 0 if there is no body.

Definition at line 64 of file TestOSHttpResponse.cs.

long OpenSim.Tests.Common.TestOSHttpResponse.ContentLength64
getset

Alias for ContentLength.

Definition at line 69 of file TestOSHttpResponse.cs.

string OpenSim.Tests.Common.TestOSHttpResponse.ContentType
getset

Content type property.

Setting this property will also set IsContentTypeSet to true.

Definition at line 46 of file TestOSHttpResponse.cs.

bool OpenSim.Tests.Common.TestOSHttpResponse.KeepAlive
getset

Definition at line 76 of file TestOSHttpResponse.cs.

int OpenSim.Tests.Common.TestOSHttpResponse.KeepAliveTimeout
getset

Get or set the keep alive timeout property (default is 20). Setting this to 0 also disables KeepAlive. Setting this to something else but 0 also enable KeepAlive.

Definition at line 83 of file TestOSHttpResponse.cs.

Stream OpenSim.Tests.Common.TestOSHttpResponse.OutputStream
getset

Return the output stream feeding the body.

On its way out...

Definition at line 91 of file TestOSHttpResponse.cs.

string OpenSim.Tests.Common.TestOSHttpResponse.ProtocolVersion
getset

Definition at line 93 of file TestOSHttpResponse.cs.

string OpenSim.Tests.Common.TestOSHttpResponse.RedirectLocation
getset

Set a redirct location.

Definition at line 103 of file TestOSHttpResponse.cs.

bool OpenSim.Tests.Common.TestOSHttpResponse.ReuseContext
getset

Definition at line 120 of file TestOSHttpResponse.cs.

bool OpenSim.Tests.Common.TestOSHttpResponse.SendChunked
getset

Chunk transfers.

Definition at line 108 of file TestOSHttpResponse.cs.

int OpenSim.Tests.Common.TestOSHttpResponse.StatusCode
getset

HTTP status code.

Definition at line 113 of file TestOSHttpResponse.cs.

string OpenSim.Tests.Common.TestOSHttpResponse.StatusDescription
getset

HTTP status description.

Definition at line 118 of file TestOSHttpResponse.cs.


The documentation for this class was generated from the following file: