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

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

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

Свойство Тип Описание
ReplyContents string
ReplyImagePath string
StatusCode long
StatusDescription string

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

Метод Описание
GetPostDataWhenFormEncoded ( ) : NameValueCollection
GetPostJson ( ) : string
GetPostString ( ) : string
GetQueryParameters ( ) : NameValueCollection
PretendRequestInfo ( string url, HttpMethods httpMethod = HttpMethods.Get, bool forPrinting = false, bool forSrcAttr = false ) : System.Collections.Specialized
ReplyWithFileContent ( string path ) : void
ReplyWithImage ( string path ) : void
SucceededDoNotNavigate ( ) : void
WriteCompleteOutput ( string s ) : void
WriteError ( int errorCode ) : void
WriteError ( int errorCode, string errorDescription ) : void

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

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

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

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

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

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

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

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

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

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

public PretendRequestInfo ( string url, HttpMethods httpMethod = HttpMethods.Get, bool forPrinting = false, bool forSrcAttr = false ) : System.Collections.Specialized
url string
httpMethod HttpMethods
forPrinting bool
forSrcAttr bool
Результат System.Collections.Specialized

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

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

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

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

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

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

ReplyContents публичное свойство

public string ReplyContents
Результат string

ReplyImagePath публичное свойство

public string ReplyImagePath
Результат string

StatusCode публичное свойство

public long StatusCode
Результат long

StatusDescription публичное свойство

public string StatusDescription
Результат string