System.Web.HttpWorkerRequest: Method Members

The methods of System.Web.HttpWorkerRequest are listed below. For a list of all members, see the HttpWorkerRequest Members list.

See Also: Inherited members from System.Object

Public Methods

CloseConnection()

Terminates the connection with the client.

abstract
EndOfRequest()

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

abstract
FlushResponse(bool)

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.

GetAppPoolID() : string

When overridden in a derived class, returns the application pool ID for the current URL.

GetBytesRead() : long

Gets the number of bytes read in from the client.

GetClientCertificate() : byte[]

When overridden in a derived class, gets the certification fields (specified in the X.509 standard) from a request issued by the client.

GetClientCertificateBinaryIssuer() : byte[]

Gets the certificate issuer, in binary format.

GetClientCertificateEncoding() : int

When overridden in a derived class, returns the System.Text.Encoding object in which the client certificate was encoded.

GetClientCertificatePublicKey() : byte[]

When overridden in a derived class, gets a PublicKey object associated with the client certificate.

GetClientCertificateValidFrom() : DateTime

When overridden in a derived class, gets the date when the certificate becomes valid. The date varies with international settings.

GetClientCertificateValidUntil() : DateTime

Gets the certificate expiration date.

GetConnectionID() : long

When overridden in a derived class, returns the ID of the current connection.

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: for example, "/proj1/page.aspx" to "c:\dir\page.aspx")

abstract
GetHttpVerbName() : string

Returns the specified member of the request header.

abstract
GetHttpVersion() : string

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

GetKnownRequestHeader(int) : string

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

static
GetKnownRequestHeaderIndex(string) : int

Returns the index number of the specified HTTP request header.

static
GetKnownRequestHeaderName(int) : string

Returns the name of the specified HTTP request header.

static
GetKnownResponseHeaderIndex(string) : int

Returns the index number of the specified HTTP response header.

static
GetKnownResponseHeaderName(int) : string

Returns the name of the specified HTTP response header.

abstract
GetLocalAddress() : string

Provides access to the specified member of the request header.

abstract
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. That is, for the path /virdir/page.html/tail, the GetPathInfo value is /tail.

GetPreloadedEntityBody() : byte[]

Returns the portion of the HTTP request body that has already been read.

GetPreloadedEntityBody(byte[], int) : int

Gets the portion of the HTTP request body that has currently been read by using the specified buffer data and byte offset.

GetPreloadedEntityBodyLength() : int

Gets the length of the portion of the HTTP request body that has currently been read.

GetProtocol() : string

When overridden in a derived class, returns the HTTP protocol (HTTP or HTTPS).

abstract
GetQueryString() : string

Returns the query string specified in the request URL.

GetQueryStringRawBytes() : byte[]

When overridden in a derived class, returns the response query string as an array of bytes.

abstract
GetRawUrl() : string

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

abstract
GetRemoteAddress() : string

Provides access to the specified member of the request header.

GetRemoteName() : string

When overridden in a derived class, returns the name of the client computer.

abstract
GetRemotePort() : int

Provides access to the specified member of the request header.

GetRequestReason() : int

When overridden in a derived class, returns the reason for the request.

GetServerName() : string

When overridden in a derived class, returns the name of the local server.

GetServerVariable(string) : string

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

static
GetStatusDescription(int) : string

Returns a string that describes the name of the specified HTTP status code.

GetTotalEntityBodyLength() : int

Gets the length of the entire HTTP request body.

GetUnknownRequestHeader(string) : string

Returns a nonstandard HTTP request header value.

GetUnknownRequestHeaders() : string[][]

Get all nonstandard HTTP header name-value pairs.

abstract
GetUriPath() : string

Returns the virtual path to the requested URI.

GetUrlContextID() : long

When overridden in a derived class, returns the context ID of the current connection.

GetUserToken() : IntPtr

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

GetVirtualPathToken() : IntPtr

Gets the impersonation token for the request virtual path.

HasEntityBody() : bool

Returns a value indicating whether the request contains body data.

HeadersSent() : bool

Returns a value indicating whether HTTP response headers have been sent to the client for the current request.

IsClientConnected() : bool

Returns a value indicating whether the client connection is still active.

IsEntireEntityBodyIsPreloaded() : bool

Returns a value indicating whether all request data is available and no further reads from the client are required.

IsSecure() : bool

Returns a value indicating whether the connection uses SSL.

MapPath(string) : string

Returns the physical path corresponding to the specified virtual path.

ReadEntityBody(byte[], int) : int

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

ReadEntityBody(byte[], int, int) : int

Reads request data from the client (when not preloaded) by using the specified buffer to read from, byte offset, and maximum bytes.

SendCalculatedContentLength(int)

Adds a Content-Length HTTP header to the response for message bodies that are less than or equal to 2 GB.

SendCalculatedContentLength(long)

Adds a Content-Length HTTP header to the response for message bodies that are greater than 2 GB.

abstract
SendKnownResponseHeader(int, string)

Adds a standard HTTP header to the response.

abstract
SendResponseFromFile(IntPtr, long, long)

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.

abstract
SendResponseFromFile(string, long, long)

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.

abstract
SendResponseFromMemory(byte[], int)

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

SendResponseFromMemory(IntPtr, int)

Adds the specified number of bytes from a block of memory to the response.

abstract
SendStatus(int, string)

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

abstract
SendUnknownResponseHeader(string, string)

Adds a nonstandard HTTP header to the response.

SetEndOfSendNotification(HttpWorkerRequest.EndOfSendNotification, object)
Documentation for this section has not yet been entered.