C# 클래스 Stumps.BasicHttpResponse

A class representing a simple and basic HTTP response.
상속: IStumpsHttpResponse
파일 보기 프로젝트 열기: Cayan-LLC/stumps 1 사용 예제들

공개 메소드들

메소드 설명
AppendToBody ( byte buffer ) : void

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

AppendToBody ( string value ) : void

Appends a string value to the body of the HTTP response.

The value will be converted to a byte array using UTF8 encoding.

AppendToBody ( string value, Encoding encoding ) : void

Appends a string value to the body of the HTTP response using a specified encoding.

BasicHttpResponse ( ) : System

Initializes a new instance of the T:Stumps.BasicHttpResponse class.

ClearBody ( ) : void

Clears the existing body of the HTTP response.

GetBody ( ) : byte[]

Gets the bytes for the HTTP body.

GetBodyAsString ( ) : string

Gets the body of the HTTP response as a T:System.String.

The body is decoded using UTF8 encoding.

GetBodyAsString ( Encoding encoding ) : string

Gets the body of the HTTP response as a T:System.String.

The body is decoded using UTF8 encoding.

메소드 상세

AppendToBody() 공개 메소드

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.
리턴 void

AppendToBody() 공개 메소드

Appends a string value to the body of the HTTP response.
The value will be converted to a byte array using UTF8 encoding.
public AppendToBody ( string value ) : void
value string The value to append to the body of the HTTP response.
리턴 void

AppendToBody() 공개 메소드

Appends a string value to the body of the HTTP response using a specified encoding.
public AppendToBody ( string value, Encoding encoding ) : void
value string The value to append to the body of the HTTP response.
encoding System.Text.Encoding The encoding used to convert the into a byte array.
리턴 void

BasicHttpResponse() 공개 메소드

Initializes a new instance of the T:Stumps.BasicHttpResponse class.
public BasicHttpResponse ( ) : System
리턴 System

ClearBody() 공개 메소드

Clears the existing body of the HTTP response.
public ClearBody ( ) : void
리턴 void

GetBody() 공개 메소드

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

GetBodyAsString() 공개 메소드

Gets the body of the HTTP response as a T:System.String.
The body is decoded using UTF8 encoding.
public GetBodyAsString ( ) : string
리턴 string

GetBodyAsString() 공개 메소드

Gets the body of the HTTP response as a T:System.String.
The body is decoded using UTF8 encoding.
public GetBodyAsString ( Encoding encoding ) : string
encoding System.Text.Encoding The encoding used to convert the HTTP body into a .
리턴 string