C# Класс Cassini.Request

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

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

Метод Описание
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

Приватные методы

Метод Описание
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

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

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

public CloseConnection ( ) : void
Результат void

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

public EndOfRequest ( ) : void
Результат void

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

public FlushResponse ( bool finalFlush ) : void
finalFlush bool
Результат void

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

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

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

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

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

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

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

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

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

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

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

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

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

public GetKnownRequestHeader ( int index ) : string
index int
Результат string

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

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

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

public GetLocalPort ( ) : int
Результат int

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

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

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

public GetPreloadedEntityBody ( ) : byte[]
Результат byte[]

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

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

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

public GetQueryStringRawBytes ( ) : byte[]
Результат byte[]

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

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

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

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

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

public GetRemotePort ( ) : int
Результат int

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

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

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

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

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

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

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

public GetUnknownRequestHeaders ( ) : string[][]
Результат string[][]

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

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

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

public HeadersSent ( ) : bool
Результат bool

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

public IsClientConnected ( ) : bool
Результат bool

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

public IsEntireEntityBodyIsPreloaded ( ) : bool
Результат bool

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

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

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

01/06/10 sky: added RequestInfo construction
public Process ( ) : void
Результат void

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

public ReadEntityBody ( byte buffer, int size ) : int
buffer byte
size int
Результат int

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

public Request ( Server server, Host host, Connection connection ) : System
server Server
host Host
connection Connection
Результат System

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

public SendCalculatedContentLength ( int contentLength ) : void
contentLength int
Результат void

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

public SendKnownResponseHeader ( int index, string value ) : void
index int
value string
Результат void

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

public SendResponseFromFile ( IntPtr handle, long offset, long length ) : void
handle System.IntPtr
offset long
length long
Результат void

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

public SendResponseFromFile ( string filename, long offset, long length ) : void
filename string
offset long
length long
Результат void

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

public SendResponseFromMemory ( byte data, int length ) : void
data byte
length int
Результат void

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

public SendStatus ( int statusCode, string statusDescription ) : void
statusCode int
statusDescription string
Результат void

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

public SendUnknownResponseHeader ( string name, string value ) : void
name string
value string
Результат void