C# Class HttpServer.HttpRequest

ファイルを表示 Open project: 3di/3di-viewer-rei-libs Class Usage Examples

Public Properties

Property Type Description
UriSplitters char[]

Public Methods

Method Description
AddHeader ( string name, string value ) : void

Called during parsing of a IHttpRequest.

AddToBody ( byte bytes, int offset, int length ) : int

Add bytes to the body

Clear ( ) : void

Clear everything in the request

Clone ( ) : object

Creates a new object that is a copy of the current instance.

DecodeBody ( FormDecoderProvider providers ) : void

Decode body into a form.

SetCookies ( RequestCookies cookies ) : void

Cookies

Private Methods

Method Description
AssignForm ( HttpForm form ) : void

Assign a form.

ShouldReplyTo100Continue ( ) : bool

Method Details

AddHeader() public method

Called during parsing of a IHttpRequest.
If a header is incorrect.
public AddHeader ( string name, string value ) : void
name string Name of the header, should not be url encoded
value string Value of the header, should not be url encoded
return void

AddToBody() public method

Add bytes to the body
If body is not writable
public AddToBody ( byte bytes, int offset, int length ) : int
bytes byte buffer to read bytes from
offset int where to start read
length int number of bytes to read
return int

Clear() public method

Clear everything in the request
public Clear ( ) : void
return void

Clone() public method

Creates a new object that is a copy of the current instance.
public Clone ( ) : object
return object

DecodeBody() public method

Decode body into a form.
If body contents is not valid for the chosen decoder. If body is still being transferred.
public DecodeBody ( FormDecoderProvider providers ) : void
providers FormDecoderProvider A list with form decoders.
return void

SetCookies() public method

Cookies
public SetCookies ( RequestCookies cookies ) : void
cookies RequestCookies the cookies
return void

Property Details

UriSplitters public_oe static_oe property

Chars used to split an url path into multiple parts.
public static char[] UriSplitters
return char[]