C# 클래스 Netty.AspServerRequest

Provides an HttpWorkerRequest that is used by the ASP.Net runtime.
상속: System.Web.HttpWorkerRequest
파일 보기 프로젝트 열기: Cayan-LLC/netty 1 사용 예제들

공개 메소드들

메소드 설명
AspServerRequest ( IHttpContext context, string virtualPath, string physicalPath ) : System

Initializes a new instance of the AspServerRequest class.

CloseConnection ( ) : void

Terminates the connection with the client.

EndOfRequest ( ) : void

Used by the runtime to notify the T:System.Web.HttpWorkerRequest that request processing for the current request is complete.

FlushResponse ( bool finalFlush ) : void

Sends all pending response data to the client.

GetAppPath ( ) : string

Returns the virtual path to the currently executing server application.

GetAppPathTranslated ( ) : string

Returns the physical path to the currently executing server application.

GetFilePath ( ) : string

When overridden in a derived class, returns the virtual path to the requested URI.

GetFilePathTranslated ( ) : string

Returns the physical file path to the requested URI and translates it from virtual path to physical path.

GetHttpVerbName ( ) : string

Returns the specified member of the request header.

GetHttpVersion ( ) : string

Provides access to the HTTP version of the request (for example, "HTTP/1.1").

GetKnownRequestHeader ( int index ) : string

Returns the standard HTTP request header that corresponds to the specified index.

GetLocalAddress ( ) : string

Provides access to the specified member of the request header.

GetLocalPort ( ) : int

Provides access to the specified member of the request header.

GetPathInfo ( ) : string

Returns additional path information for a resource with a URL extension.

GetQueryString ( ) : string

Returns the query string specified in the request URL.

GetRawUrl ( ) : string

Returns the URL path contained in the request header with the query string appended.

GetRemoteAddress ( ) : string

Provides access to the specified member of the request header.

GetRemotePort ( ) : int

Provides access to the specified member of the request header.

GetServerVariable ( string name ) : string

Returns a single server variable from a dictionary of server variables associated with the request.

GetUnknownRequestHeader ( string name ) : string

Returns a nonstandard HTTP request header value.

GetUnknownRequestHeaders ( ) : string[][]

Get all nonstandard HTTP header name-value pairs.

GetUriPath ( ) : string

Returns the virtual path to the requested URI.

GetUserToken ( ) : IntPtr

When overridden in a derived class, returns the client's impersonation token.

ReadEntityBody ( byte buffer, int size ) : int

Reads request data from the client (when not preloaded).

SendKnownResponseHeader ( int index, string value ) : void

Adds a standard HTTP header to the response.

SendResponseFromFile ( IntPtr handle, long offset, long length ) : void

Adds the contents of the specified file to the response and specifies the starting position in the file and the number of bytes to send.

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

Adds the contents of the specified file to the response and specifies the starting position in the file and the number of bytes to send.

SendResponseFromMemory ( byte data, int length ) : void

Adds the specified number of bytes from a byte array to the response.

SendStatus ( int statusCode, string statusDescription ) : void

Specifies the HTTP status code and status description of the response, such as SendStatus(200, "Ok").

SendUnknownResponseHeader ( string name, string value ) : void

Adds a nonstandard HTTP header to the response.

메소드 상세

AspServerRequest() 공개 메소드

Initializes a new instance of the AspServerRequest class.
public AspServerRequest ( IHttpContext context, string virtualPath, string physicalPath ) : System
context IHttpContext The HTTP context used by the ASP.Net request.
virtualPath string The virtual path for the ASP.Net website.
physicalPath string The physical path to the files for the ASP.Net website.
리턴 System

CloseConnection() 공개 메소드

Terminates the connection with the client.
public CloseConnection ( ) : void
리턴 void

EndOfRequest() 공개 메소드

Used by the runtime to notify the T:System.Web.HttpWorkerRequest that request processing for the current request is complete.
public EndOfRequest ( ) : void
리턴 void

FlushResponse() 공개 메소드

Sends all pending response data to the client.
public FlushResponse ( bool finalFlush ) : void
finalFlush bool true if this is the last time response data will be flushed; otherwise, false.
리턴 void

GetAppPath() 공개 메소드

Returns the virtual path to the currently executing server application.
public GetAppPath ( ) : string
리턴 string

GetAppPathTranslated() 공개 메소드

Returns the physical path to the currently executing server application.
public GetAppPathTranslated ( ) : string
리턴 string

GetFilePath() 공개 메소드

When overridden in a derived class, returns the virtual path to the requested URI.
public GetFilePath ( ) : string
리턴 string

GetFilePathTranslated() 공개 메소드

Returns the physical file path to the requested URI and translates it from virtual path to physical path.
public GetFilePathTranslated ( ) : string
리턴 string

GetHttpVerbName() 공개 메소드

Returns the specified member of the request header.
public GetHttpVerbName ( ) : string
리턴 string

GetHttpVersion() 공개 메소드

Provides access to the HTTP version of the request (for example, "HTTP/1.1").
public GetHttpVersion ( ) : string
리턴 string

GetKnownRequestHeader() 공개 메소드

Returns the standard HTTP request header that corresponds to the specified index.
public GetKnownRequestHeader ( int index ) : string
index int /// The index of the header. For example, the field. ///
리턴 string

GetLocalAddress() 공개 메소드

Provides access to the specified member of the request header.
public GetLocalAddress ( ) : string
리턴 string

GetLocalPort() 공개 메소드

Provides access to the specified member of the request header.
public GetLocalPort ( ) : int
리턴 int

GetPathInfo() 공개 메소드

Returns additional path information for a resource with a URL extension.
public GetPathInfo ( ) : string
리턴 string

GetQueryString() 공개 메소드

Returns the query string specified in the request URL.
public GetQueryString ( ) : string
리턴 string

GetRawUrl() 공개 메소드

Returns the URL path contained in the request header with the query string appended.
public GetRawUrl ( ) : string
리턴 string

GetRemoteAddress() 공개 메소드

Provides access to the specified member of the request header.
public GetRemoteAddress ( ) : string
리턴 string

GetRemotePort() 공개 메소드

Provides access to the specified member of the request header.
public GetRemotePort ( ) : int
리턴 int

GetServerVariable() 공개 메소드

Returns a single server variable from a dictionary of server variables associated with the request.
public GetServerVariable ( string name ) : string
name string The name of the requested server variable.
리턴 string

GetUnknownRequestHeader() 공개 메소드

Returns a nonstandard HTTP request header value.
public GetUnknownRequestHeader ( string name ) : string
name string The header name.
리턴 string

GetUnknownRequestHeaders() 공개 메소드

Get all nonstandard HTTP header name-value pairs.
public GetUnknownRequestHeaders ( ) : string[][]
리턴 string[][]

GetUriPath() 공개 메소드

Returns the virtual path to the requested URI.
public GetUriPath ( ) : string
리턴 string

GetUserToken() 공개 메소드

When overridden in a derived class, returns the client's impersonation token.
public GetUserToken ( ) : IntPtr
리턴 System.IntPtr

ReadEntityBody() 공개 메소드

Reads request data from the client (when not preloaded).
public ReadEntityBody ( byte buffer, int size ) : int
buffer byte The byte array to read data into.
size int The maximum number of bytes to read.
리턴 int

SendKnownResponseHeader() 공개 메소드

Adds a standard HTTP header to the response.
public SendKnownResponseHeader ( int index, string value ) : void
index int /// The header index. For example, . ///
value string The value of the header.
리턴 void

SendResponseFromFile() 공개 메소드

Adds the contents of the specified file to the response and specifies the starting position in the file and the number of bytes to send.
public SendResponseFromFile ( IntPtr handle, long offset, long length ) : void
handle System.IntPtr The handle of the file to send.
offset long The starting position in the file.
length long The number of bytes to send.
리턴 void

SendResponseFromFile() 공개 메소드

Adds the contents of the specified file to the response and specifies the starting position in the file and the number of bytes to send.
public SendResponseFromFile ( string filename, long offset, long length ) : void
filename string The name of the file to send.
offset long The starting position in the file.
length long The number of bytes to send.
리턴 void

SendResponseFromMemory() 공개 메소드

Adds the specified number of bytes from a byte array to the response.
public SendResponseFromMemory ( byte data, int length ) : void
data byte The byte array to send.
length int The number of bytes to send, starting at the first byte.
리턴 void

SendStatus() 공개 메소드

Specifies the HTTP status code and status description of the response, such as SendStatus(200, "Ok").
public SendStatus ( int statusCode, string statusDescription ) : void
statusCode int The status code to send.
statusDescription string The status description to send.
리턴 void

SendUnknownResponseHeader() 공개 메소드

Adds a nonstandard HTTP header to the response.
public SendUnknownResponseHeader ( string name, string value ) : void
name string The name of the header to send.
value string The value of the header.
리턴 void