C# Class Bloom.Api.RequestInfo

this makes it easier to test without actually going through the http listener
Inheritance: IRequestInfo
Show file Open project: BloomBooks/BloomDesktop Class Usage Examples

Private Properties

Property Type Description
GetPostStringInner string
UnescapeString string
WriteOutput void

Public Methods

Method Description
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

Private Methods

Method Description
GetPostStringInner ( ) : string
UnescapeString ( string value ) : string
WriteOutput ( byte buffer, HttpListenerResponse response ) : void

Method Details

GetPostDataWhenFormEncoded() public method

public GetPostDataWhenFormEncoded ( ) : NameValueCollection
return System.Collections.Specialized.NameValueCollection

GetPostJson() public method

public GetPostJson ( ) : string
return string

GetPostString() public method

public GetPostString ( ) : string
return string

GetQueryParameters() public method

Processes the QueryString, decoding the values if needed
public GetQueryParameters ( ) : NameValueCollection
return System.Collections.Specialized.NameValueCollection

ReplyWithFileContent() public method

public ReplyWithFileContent ( string path ) : void
path string
return void

ReplyWithImage() public method

public ReplyWithImage ( string path ) : void
path string
return void

RequestInfo() public method

public RequestInfo ( HttpListenerContext actualContext ) : System
actualContext System.Net.HttpListenerContext
return System

SucceededDoNotNavigate() public method

public SucceededDoNotNavigate ( ) : void
return void

WriteCompleteOutput() public method

public WriteCompleteOutput ( string s ) : void
s string
return void

WriteError() public method

public WriteError ( int errorCode ) : void
errorCode int
return void

WriteError() public method

public WriteError ( int errorCode, string errorDescription ) : void
errorCode int
errorDescription string
return void