C# Class Stumps.Server.Data.HttpResponseEntityReader

A class that provides an T:Stumps.IStumpsHttpResponse implementation using a T:Stumps.Server.Data.HttpResponseEntity object.
Inheritance: IStumpsHttpResponse
Show file Open project: Cayan-LLC/stumps

Public Methods

Method Description
AppendToBody ( byte buffer ) : void

Appends a byte array to the body of the HTTP response.

ClearBody ( ) : void

Clears the existing body of the HTTP response.

GetBody ( ) : byte[]

Gets the bytes for the HTTP body.

HttpResponseEntityReader ( string serverId, HttpResponseEntity responseEntity, IDataAccess dataAccess ) : System

Initializes a new instance of the T:Stumps.Server.Data.HttpResponseEntityReader class.

Method Details

AppendToBody() public method

Appends a byte array to the body of the HTTP response.
Thrown when altering the HTTP body.
public AppendToBody ( byte buffer ) : void
buffer byte The bytes to append to the body of the response.
return void

ClearBody() public method

Clears the existing body of the HTTP response.
Thrown when altering the HTTP body.
public ClearBody ( ) : void
return void

GetBody() public method

Gets the bytes for the HTTP body.
public GetBody ( ) : byte[]
return byte[]

HttpResponseEntityReader() public method

Initializes a new instance of the T:Stumps.Server.Data.HttpResponseEntityReader class.
/// is null. /// or /// is null. /// or /// is null. ///
public HttpResponseEntityReader ( string serverId, HttpResponseEntity responseEntity, IDataAccess dataAccess ) : System
serverId string The unique identifier for the server.
responseEntity HttpResponseEntity The response entity.
dataAccess IDataAccess The data access provider used by the instance.
return System