C# Class Stumps.Server.RecordedResponse

A class that represents a recorded HTTP response.
Inheritance: RecordedContextPartBase, IStumpsHttpResponse
Mostrar archivo 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.

ExamineBody ( ) : void

Examines the body for the classification, and the MD5 hash.

RecordedResponse ( IStumpsHttpResponse response, ContentDecoderHandling decoderHandling ) : System

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

Method Details

AppendToBody() public method

Appends a byte array to the body of the HTTP response.
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.
Always thrown.
public ClearBody ( ) : void
return void

ExamineBody() public method

Examines the body for the classification, and the MD5 hash.
public ExamineBody ( ) : void
return void

RecordedResponse() public method

Initializes a new instance of the T:Stumps.Server.RecordedResponse class.
is null.
public RecordedResponse ( IStumpsHttpResponse response, ContentDecoderHandling decoderHandling ) : System
response IStumpsHttpResponse The used to initialize the instance.
decoderHandling ContentDecoderHandling The requirements for the HTTP body.
return System