System.Web.HttpWorkerRequest Members

The members of System.Web.HttpWorkerRequest are listed below.

See Also: Inherited members from System.Object

Protected Constructors

Initializes a new instance of the System.Web.HttpWorkerRequest class.

Public Fields

const
HeaderAcceptint (20).

Specifies the index number for the Accept HTTP header.

const
HeaderAcceptCharsetint (21).

Specifies the index number for the Accept-Charset HTTP header.

const
HeaderAcceptEncodingint (22).

Specifies the index number for the Accept-Encoding HTTP header.

const
HeaderAcceptLanguageint (23).

Specifies the index number for the Accept-Language HTTP header.

const
HeaderAcceptRangesint (20).

Specifies the index number for the Accept-Ranges HTTP header.

const
HeaderAgeint (21).

Specifies the index number for the Age HTTP header.

const
HeaderAllowint (10).

Specifies the index number for the Allow HTTP header.

const
HeaderAuthorizationint (24).

Specifies the index number for the Authorization HTTP header.

const
HeaderCacheControlint (0).

The index that represents the HTTP Cache-Control HTTP header.

const
HeaderConnectionint (1).

Specifies the index number for the Connection HTTP header.

const
HeaderContentEncodingint (13).

Specifies the index number for the Content-Encoding HTTP header.

const
HeaderContentLanguageint (14).

Specifies the index number for the Content-Language HTTP header.

const
HeaderContentLengthint (11).

Specifies the index number for the Content-Length HTTP header.

const
HeaderContentLocationint (15).

Specifies the index number for the Content-Location HTTP header.

const
HeaderContentMd5int (16).

Specifies the index number for the Content-MD5 HTTP header.

const
HeaderContentRangeint (17).

Specifies the index number for the Content-Range HTTP header.

const
HeaderContentTypeint (12).

Specifies the index number for the Content-Type HTTP header.

const
HeaderCookieint (25).

Specifies the index number for the Cookie HTTP header.

const
HeaderDateint (2).

Specifies the index number for the Date HTTP header.

const
HeaderEtagint (22).

Specifies the index number for the ETag HTTP header.

const
HeaderExpectint (26).

Specifies the index number for the Except HTTP header.

const
HeaderExpiresint (18).

Specifies the index number for the Expires HTTP header.

const
HeaderFromint (27).

Specifies the index number for the From HTTP header.

const
HeaderHostint (28).

Specifies the index number for the Host HTTP header.

const
HeaderIfMatchint (29).

Specifies the index number for the If-Match HTTP header.

const
HeaderIfModifiedSinceint (30).

Specifies the index number for the If-Modified-Since HTTP header.

const
HeaderIfNoneMatchint (31).

Specifies the index number for the If-None-Match HTTP header.

const
HeaderIfRangeint (32).

Specifies the index number for the If-Range HTTP header.

const
HeaderIfUnmodifiedSinceint (33).

Specifies the index number for the If-Unmodified-Since HTTP header.

const
HeaderKeepAliveint (3).

Specifies the index number for the Keep-Alive HTTP header.

const
HeaderLastModifiedint (19).

Specifies the index number for the Last-Modified HTTP header.

const
HeaderLocationint (23).

Specifies the index number for the Location HTTP header.

const
HeaderMaxForwardsint (34).

Specifies the index number for the Max-Forwards HTTP header.

const
HeaderPragmaint (4).

Specifies the index number for the Pragma HTTP header.

const
HeaderProxyAuthenticateint (24).

Specifies the index number for the Proxy-Authenticate HTTP header.

const
HeaderProxyAuthorizationint (35).

Specifies the index number for the Proxy-Authorization HTTP header.

const
HeaderRangeint (37).

Specifies the index number for the Range HTTP header.

const
HeaderRefererint (36).

Specifies the index number for the Referer HTTP header.

const
HeaderRetryAfterint (25).

Specifies the index number for the Retry-After HTTP header.

const
HeaderServerint (26).

Specifies the index number for the Server HTTP header.

const
HeaderSetCookieint (27).

Specifies the index number for the Set-Cookie HTTP header.

const
HeaderTeint (38).

Specifies the index number for the TE HTTP header.

const
HeaderTrailerint (5).

Specifies the index number for the Trailer HTTP header.

const
HeaderTransferEncodingint (6).

Specifies the index number for the Transfer-Encoding HTTP header.

const
HeaderUpgradeint (7).

Specifies the index number for the Upgrade HTTP header.

const
HeaderUserAgentint (39).

Specifies the index number for the User-Agent HTTP header.

const
HeaderVaryint (28).

Specifies the index number for the Vary HTTP header.

const
HeaderViaint (8).

Specifies the index number for the Via HTTP header.

const
HeaderWarningint (9).

Specifies the index number for the Warning HTTP header.

const
HeaderWwwAuthenticateint (29).

Specifies the index number for the WWW-Authenticate HTTP header.

const
ReasonCachePolicyint (2).

Specifies a reason for the request.

const
ReasonCacheSecurityint (3).

Specifies a reason for the request.

const
ReasonClientDisconnectint (4).

Specifies a reason for the request.

const
ReasonDefaultint (0).

Specifies a reason for the request. The default value is HttpWorkerRequest.ReasonResponseCacheMiss.

const
ReasonFileHandleCacheMissint (1).

Specifies a reason for the request.

const
ReasonResponseCacheMissint (0).

Specifies a reason for the request.

const
RequestHeaderMaximumint (40).

Specifies the index number for the Maximum HTTP request header.

const
ResponseHeaderMaximumint (30).

Specifies the index number for the Maximum HTTP response header.

Public Properties

[read-only]
MachineConfigPathstring.

Gets the full physical path to the Machine.config file.

[read-only]
MachineInstallDirectorystring.

Gets the physical path to the directory where the ASP.NET binaries are installed.

[read-only]
RequestTraceIdentifierGuid.

Gets the corresponding Event Tracking for Windows trace ID for the current request.

[read-only]
RootWebConfigPathstring.

Gets the full physical path to the root Web.config file.

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.