C# Class Cassini.Request

Inheritance: System.Web.Hosting.SimpleWorkerRequest
Datei anzeigen Open project: gnoso/Chill Class Usage Examples

Public Methods

Method 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

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

public CloseConnection ( ) : void
return void

EndOfRequest() public method

public EndOfRequest ( ) : void
return void

FlushResponse() public method

public FlushResponse ( bool finalFlush ) : void
finalFlush bool
return void

GetAppPath() public method

public GetAppPath ( ) : string
return string

GetAppPathTranslated() public method

public GetAppPathTranslated ( ) : string
return string

GetFilePath() public method

public GetFilePath ( ) : string
return string

GetFilePathTranslated() public method

public GetFilePathTranslated ( ) : string
return string

GetHttpVerbName() public method

public GetHttpVerbName ( ) : string
return string

GetHttpVersion() public method

public GetHttpVersion ( ) : string
return string

GetKnownRequestHeader() public method

public GetKnownRequestHeader ( int index ) : string
index int
return string

GetLocalAddress() public method

public GetLocalAddress ( ) : string
return string

GetLocalPort() public method

public GetLocalPort ( ) : int
return int

GetPathInfo() public method

public GetPathInfo ( ) : string
return string

GetPreloadedEntityBody() public method

public GetPreloadedEntityBody ( ) : byte[]
return byte[]

GetQueryString() public method

public GetQueryString ( ) : string
return string

GetQueryStringRawBytes() public method

public GetQueryStringRawBytes ( ) : byte[]
return byte[]

GetRawUrl() public method

public GetRawUrl ( ) : string
return string

GetRemoteAddress() public method

public GetRemoteAddress ( ) : string
return string

GetRemotePort() public method

public GetRemotePort ( ) : int
return int

GetServerName() public method

public GetServerName ( ) : string
return string

GetServerVariable() public method

public GetServerVariable ( string name ) : string
name string
return string

GetUnknownRequestHeader() public method

public GetUnknownRequestHeader ( string name ) : string
name string
return string

GetUnknownRequestHeaders() public method

public GetUnknownRequestHeaders ( ) : string[][]
return string[][]

GetUriPath() public method

public GetUriPath ( ) : string
return string

HeadersSent() public method

public HeadersSent ( ) : bool
return bool

IsClientConnected() public method

public IsClientConnected ( ) : bool
return bool

IsEntireEntityBodyIsPreloaded() public method

public IsEntireEntityBodyIsPreloaded ( ) : bool
return bool

MapPath() public method

public MapPath ( string path ) : string
path string
return string

Process() public method

01/06/10 sky: added RequestInfo construction
public Process ( ) : void
return void

ReadEntityBody() public method

public ReadEntityBody ( byte buffer, int size ) : int
buffer byte
size int
return int

Request() public method

public Request ( Server server, Host host, Connection connection ) : System
server Server
host Host
connection Connection
return System

SendCalculatedContentLength() public method

public SendCalculatedContentLength ( int contentLength ) : void
contentLength int
return void

SendKnownResponseHeader() public method

public SendKnownResponseHeader ( int index, string value ) : void
index int
value string
return void

SendResponseFromFile() public method

public SendResponseFromFile ( IntPtr handle, long offset, long length ) : void
handle System.IntPtr
offset long
length long
return void

SendResponseFromFile() public method

public SendResponseFromFile ( string filename, long offset, long length ) : void
filename string
offset long
length long
return void

SendResponseFromMemory() public method

public SendResponseFromMemory ( byte data, int length ) : void
data byte
length int
return void

SendStatus() public method

public SendStatus ( int statusCode, string statusDescription ) : void
statusCode int
statusDescription string
return void

SendUnknownResponseHeader() public method

public SendUnknownResponseHeader ( string name, string value ) : void
name string
value string
return void