C# Class Bloom.Api.RequestInfo

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

Private Properties

Свойство Type Description
GetPostStringInner string
UnescapeString string
WriteOutput void

Méthodes publiques

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

Méthode Description
GetPostStringInner ( ) : string
UnescapeString ( string value ) : string
WriteOutput ( byte buffer, HttpListenerResponse response ) : void

Method Details

GetPostDataWhenFormEncoded() public méthode

public GetPostDataWhenFormEncoded ( ) : NameValueCollection
Résultat System.Collections.Specialized.NameValueCollection

GetPostJson() public méthode

public GetPostJson ( ) : string
Résultat string

GetPostString() public méthode

public GetPostString ( ) : string
Résultat string

GetQueryParameters() public méthode

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

ReplyWithFileContent() public méthode

public ReplyWithFileContent ( string path ) : void
path string
Résultat void

ReplyWithImage() public méthode

public ReplyWithImage ( string path ) : void
path string
Résultat void

RequestInfo() public méthode

public RequestInfo ( HttpListenerContext actualContext ) : System
actualContext System.Net.HttpListenerContext
Résultat System

SucceededDoNotNavigate() public méthode

public SucceededDoNotNavigate ( ) : void
Résultat void

WriteCompleteOutput() public méthode

public WriteCompleteOutput ( string s ) : void
s string
Résultat void

WriteError() public méthode

public WriteError ( int errorCode ) : void
errorCode int
Résultat void

WriteError() public méthode

public WriteError ( int errorCode, string errorDescription ) : void
errorCode int
errorDescription string
Résultat void