C# Class Cassini.Request

Inheritance: System.Web.Hosting.SimpleWorkerRequest
Afficher le fichier Open project: gnoso/Chill Class Usage Examples

Méthodes publiques

Méthode Description
CloseConnection ( ) : void
EndOfRequest ( ) : void
FlushResponse ( bool finalFlush ) : void
GetAppPath ( ) : string
GetAppPathTranslated ( ) : string
GetFilePath ( ) : string
GetFilePathTranslated ( ) : string
GetHttpVerbName ( ) : string
GetHttpVersion ( ) : string
GetKnownRequestHeader ( int index ) : string
GetLocalAddress ( ) : string
GetLocalPort ( ) : int
GetPathInfo ( ) : string
GetPreloadedEntityBody ( ) : byte[]
GetQueryString ( ) : string
GetQueryStringRawBytes ( ) : byte[]
GetRawUrl ( ) : string
GetRemoteAddress ( ) : string
GetRemotePort ( ) : int
GetServerName ( ) : string
GetServerVariable ( string name ) : string
GetUnknownRequestHeader ( string name ) : string
GetUnknownRequestHeaders ( ) : string[][]
GetUriPath ( ) : string
HeadersSent ( ) : bool
IsClientConnected ( ) : bool
IsEntireEntityBodyIsPreloaded ( ) : bool
MapPath ( string path ) : string
Process ( ) : void

01/06/10 sky: added RequestInfo construction

ReadEntityBody ( byte buffer, int size ) : int
Request ( Server server, Host host, Connection connection ) : System

SendCalculatedContentLength ( int contentLength ) : void
SendKnownResponseHeader ( int index, string value ) : void
SendResponseFromFile ( IntPtr handle, long offset, long length ) : void
SendResponseFromFile ( string filename, long offset, long length ) : void
SendResponseFromMemory ( byte data, int length ) : void
SendStatus ( int statusCode, string statusDescription ) : void
SendUnknownResponseHeader ( string name, string value ) : void

Private Methods

Méthode Description
IsBadPath ( ) : bool
IsRequestForRestrictedDirectory ( ) : bool
ParseHeaders ( ) : void
ParsePostedContent ( ) : void
ParseRequestLine ( ) : void
PrepareResponse ( ) : void
ProcessDirectoryListingRequest ( ) : bool
ProcessDirectoryRequest ( ) : bool
ReadAllHeaders ( ) : void
Reset ( ) : void
SendResponseFromFileStream ( FileStream f, long offset, long length ) : void
SkipAllPostedContent ( ) : void
TryParseRequest ( ) : bool
TryReadAllHeaders ( ) : bool
UrlEncodeRedirect ( string path ) : string

Method Details

CloseConnection() public méthode

public CloseConnection ( ) : void
Résultat void

EndOfRequest() public méthode

public EndOfRequest ( ) : void
Résultat void

FlushResponse() public méthode

public FlushResponse ( bool finalFlush ) : void
finalFlush bool
Résultat void

GetAppPath() public méthode

public GetAppPath ( ) : string
Résultat string

GetAppPathTranslated() public méthode

public GetAppPathTranslated ( ) : string
Résultat string

GetFilePath() public méthode

public GetFilePath ( ) : string
Résultat string

GetFilePathTranslated() public méthode

public GetFilePathTranslated ( ) : string
Résultat string

GetHttpVerbName() public méthode

public GetHttpVerbName ( ) : string
Résultat string

GetHttpVersion() public méthode

public GetHttpVersion ( ) : string
Résultat string

GetKnownRequestHeader() public méthode

public GetKnownRequestHeader ( int index ) : string
index int
Résultat string

GetLocalAddress() public méthode

public GetLocalAddress ( ) : string
Résultat string

GetLocalPort() public méthode

public GetLocalPort ( ) : int
Résultat int

GetPathInfo() public méthode

public GetPathInfo ( ) : string
Résultat string

GetPreloadedEntityBody() public méthode

public GetPreloadedEntityBody ( ) : byte[]
Résultat byte[]

GetQueryString() public méthode

public GetQueryString ( ) : string
Résultat string

GetQueryStringRawBytes() public méthode

public GetQueryStringRawBytes ( ) : byte[]
Résultat byte[]

GetRawUrl() public méthode

public GetRawUrl ( ) : string
Résultat string

GetRemoteAddress() public méthode

public GetRemoteAddress ( ) : string
Résultat string

GetRemotePort() public méthode

public GetRemotePort ( ) : int
Résultat int

GetServerName() public méthode

public GetServerName ( ) : string
Résultat string

GetServerVariable() public méthode

public GetServerVariable ( string name ) : string
name string
Résultat string

GetUnknownRequestHeader() public méthode

public GetUnknownRequestHeader ( string name ) : string
name string
Résultat string

GetUnknownRequestHeaders() public méthode

public GetUnknownRequestHeaders ( ) : string[][]
Résultat string[][]

GetUriPath() public méthode

public GetUriPath ( ) : string
Résultat string

HeadersSent() public méthode

public HeadersSent ( ) : bool
Résultat bool

IsClientConnected() public méthode

public IsClientConnected ( ) : bool
Résultat bool

IsEntireEntityBodyIsPreloaded() public méthode

public IsEntireEntityBodyIsPreloaded ( ) : bool
Résultat bool

MapPath() public méthode

public MapPath ( string path ) : string
path string
Résultat string

Process() public méthode

01/06/10 sky: added RequestInfo construction
public Process ( ) : void
Résultat void

ReadEntityBody() public méthode

public ReadEntityBody ( byte buffer, int size ) : int
buffer byte
size int
Résultat int

Request() public méthode

public Request ( Server server, Host host, Connection connection ) : System
server Server
host Host
connection Connection
Résultat System

SendCalculatedContentLength() public méthode

public SendCalculatedContentLength ( int contentLength ) : void
contentLength int
Résultat void

SendKnownResponseHeader() public méthode

public SendKnownResponseHeader ( int index, string value ) : void
index int
value string
Résultat void

SendResponseFromFile() public méthode

public SendResponseFromFile ( IntPtr handle, long offset, long length ) : void
handle System.IntPtr
offset long
length long
Résultat void

SendResponseFromFile() public méthode

public SendResponseFromFile ( string filename, long offset, long length ) : void
filename string
offset long
length long
Résultat void

SendResponseFromMemory() public méthode

public SendResponseFromMemory ( byte data, int length ) : void
data byte
length int
Résultat void

SendStatus() public méthode

public SendStatus ( int statusCode, string statusDescription ) : void
statusCode int
statusDescription string
Résultat void

SendUnknownResponseHeader() public méthode

public SendUnknownResponseHeader ( string name, string value ) : void
name string
value string
Résultat void