C# Class HttpServer.HttpRequest

Afficher le fichier Open project: 3di/3di-viewer-rei-libs Class Usage Examples

Méthodes publiques

Свойство Type Description
UriSplitters char[]

Méthodes publiques

Méthode 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

Méthode Description
AssignForm ( HttpForm form ) : void

Assign a form.

ShouldReplyTo100Continue ( ) : bool

Method Details

AddHeader() public méthode

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
Résultat void

AddToBody() public méthode

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
Résultat int

Clear() public méthode

Clear everything in the request
public Clear ( ) : void
Résultat void

Clone() public méthode

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

DecodeBody() public méthode

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.
Résultat void

SetCookies() public méthode

Cookies
public SetCookies ( RequestCookies cookies ) : void
cookies RequestCookies the cookies
Résultat void

Property Details

UriSplitters public_oe static_oe property

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