C# Класс Bloom.Api.RequestInfo

this makes it easier to test without actually going through the http listener
Наследование: IRequestInfo
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetPostStringInner string
UnescapeString string
WriteOutput void

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

Метод Описание
GetPostDataWhenFormEncoded ( ) : NameValueCollection
GetPostJson ( ) : string
GetPostString ( ) : string
GetQueryParameters ( ) : NameValueCollection

Processes the QueryString, decoding the values if needed

ReplyWithFileContent ( string path ) : void
ReplyWithImage ( string path ) : void
RequestInfo ( HttpListenerContext actualContext ) : System
SucceededDoNotNavigate ( ) : void
WriteCompleteOutput ( string s ) : void
WriteError ( int errorCode ) : void
WriteError ( int errorCode, string errorDescription ) : void

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

Метод Описание
GetPostStringInner ( ) : string
UnescapeString ( string value ) : string
WriteOutput ( byte buffer, HttpListenerResponse response ) : void

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

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

public GetPostDataWhenFormEncoded ( ) : NameValueCollection
Результат System.Collections.Specialized.NameValueCollection

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

public GetPostJson ( ) : string
Результат string

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

public GetPostString ( ) : string
Результат string

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

Processes the QueryString, decoding the values if needed
public GetQueryParameters ( ) : NameValueCollection
Результат System.Collections.Specialized.NameValueCollection

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

public ReplyWithFileContent ( string path ) : void
path string
Результат void

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

public ReplyWithImage ( string path ) : void
path string
Результат void

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

public RequestInfo ( HttpListenerContext actualContext ) : System
actualContext System.Net.HttpListenerContext
Результат System

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

public SucceededDoNotNavigate ( ) : void
Результат void

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

public WriteCompleteOutput ( string s ) : void
s string
Результат void

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

public WriteError ( int errorCode ) : void
errorCode int
Результат void

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

public WriteError ( int errorCode, string errorDescription ) : void
errorCode int
errorDescription string
Результат void