C# Класс HttpServer.HttpRequest

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
UriSplitters char[]

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
AssignForm ( HttpForm form ) : void

Assign a form.

ShouldReplyTo100Continue ( ) : bool

Описание методов

AddHeader() публичный Метод

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
Результат void

AddToBody() публичный Метод

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
Результат int

Clear() публичный Метод

Clear everything in the request
public Clear ( ) : void
Результат void

Clone() публичный Метод

Creates a new object that is a copy of the current instance.
public Clone ( ) : object
Результат object

DecodeBody() публичный Метод

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.
Результат void

SetCookies() публичный Метод

Cookies
public SetCookies ( RequestCookies cookies ) : void
cookies RequestCookies the cookies
Результат void

Описание свойств

UriSplitters публичное статическое свойство

Chars used to split an url path into multiple parts.
public static char[] UriSplitters
Результат char[]