HttpWorkerRequest Members
.NET Framework 3.5
This abstract class defines the base worker methods and enumerations used by ASP.NET managed code to process requests.
The HttpWorkerRequest type exposes the following members.
| Name | Description | |
|---|---|---|
|
CloseConnection | Terminates the connection with the client. |
|
EndOfRequest | Used by the runtime to notify the HttpWorkerRequest that request processing for the current request is complete. |
|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
FlushResponse | Sends all pending response data to the client. |
|
GetAppPath | Returns the virtual path to the currently executing server application. |
|
GetAppPathTranslated | Returns the physical path to the currently executing server application. |
|
GetAppPoolID | Infrastructure. When overridden in a derived class, returns the application pool ID for the current URL. |
|
GetBytesRead | Infrastructure. Gets the number of bytes read in from the client. |
|
GetClientCertificate | Infrastructure. When overridden in a derived class, gets the certification fields (specified in the X.509 standard) from a request issued by the client. |
|
GetClientCertificateBinaryIssuer | Infrastructure. Gets the certificate issuer, in binary format. |
|
GetClientCertificateEncoding | Infrastructure. When overridden in a derived class, returns the Encoding object in which the client certificate was encoded. |
|
GetClientCertificatePublicKey | Infrastructure. When overridden in a derived class, gets a PublicKey object associated with the client certificate. |
|
GetClientCertificateValidFrom | Infrastructure. When overridden in a derived class, gets the date when the certificate becomes valid. The date varies with international settings. |
|
GetClientCertificateValidUntil | Infrastructure. Gets the certificate expiration date. |
|
GetConnectionID | Infrastructure. When overridden in a derived class, returns the ID of the current connection. |
|
GetFilePath | When overridden in a derived class, returns the virtual path to the requested URI. |
|
GetFilePathTranslated | 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") |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetHttpVerbName | Returns the specified member of the request header. |
|
GetHttpVersion | Provides access to the HTTP version of the request (for example, "HTTP/1.1"). |
|
GetKnownRequestHeader | Returns the standard HTTP request header that corresponds to the specified index. |
|
GetKnownRequestHeaderIndex | Returns the index number of the specified HTTP request header. |
|
GetKnownRequestHeaderName | Returns the name of the specified HTTP request header. |
|
GetKnownResponseHeaderIndex | Returns the index number of the specified HTTP response header. |
|
GetKnownResponseHeaderName | Returns the name of the specified HTTP response header. |
|
GetLocalAddress | Provides access to the specified member of the request header. |
|
GetLocalPort | Provides access to the specified member of the request header. |
|
GetPathInfo | 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 | Overloaded. Overloaded. Returns the portion of the HTTP request body that has currently been read. |
|
GetPreloadedEntityBodyLength | Gets the length of the portion of the HTTP request body that has currently been read. |
|
GetProtocol | When overridden in a derived class, returns the HTTP protocol (HTTP or HTTPS). |
|
GetQueryString | Returns the query string specified in the request URL. |
|
GetQueryStringRawBytes | When overridden in a derived class, returns the response query string as an array of bytes. |
|
GetRawUrl | Returns the URL path contained in the request header with the query string appended. |
|
GetRemoteAddress | Provides access to the specified member of the request header. |
|
GetRemoteName | When overridden in a derived class, returns the name of the client computer. |
|
GetRemotePort | Provides access to the specified member of the request header. |
|
GetRequestReason | Infrastructure. When overridden in a derived class, returns the reason for the request. |
|
GetServerName | When overridden in a derived class, returns the name of the local server. |
|
GetServerVariable | Returns a single server variable from a dictionary of server variables associated with the request. |
|
GetStatusDescription | Returns a string that describes the name of the specified HTTP status code. |
|
GetTotalEntityBodyLength | Gets the length of the entire HTTP request body. |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
GetUnknownRequestHeader | Returns a nonstandard HTTP request header value. |
|
GetUnknownRequestHeaders | Get all nonstandard HTTP header name-value pairs. |
|
GetUriPath | Returns the virtual path to the requested URI. |
|
GetUrlContextID | Infrastructure. When overridden in a derived class, returns the context ID of the current connection. |
|
GetUserToken | When overridden in a derived class, returns the client's impersonation token. |
|
GetVirtualPathToken | Infrastructure. Gets the impersonation token for the request virtual path. |
|
HasEntityBody | Returns a value indicating whether the request contains body data. |
|
HeadersSent | Returns a value indicating whether HTTP response headers have been sent to the client for the current request. |
|
IsClientConnected | Returns a value indicating whether the client connection is still active. |
|
IsEntireEntityBodyIsPreloaded | Returns a value indicating whether all request data is available and no further reads from the client are required. |
|
IsSecure | Returns a value indicating whether the connection uses SSL. |
|
MapPath | Returns the physical path corresponding to the specified virtual path. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
ReadEntityBody | Overloaded. Overloaded. Reads request data from the client (when not preloaded). |
|
SendCalculatedContentLength | Overloaded. Adds a Content-Length HTTP header to the response. |
|
SendKnownResponseHeader | Adds a standard HTTP header to the response. |
|
SendResponseFromFile | Overloaded. Adds the contents of a file to the response. |
|
SendResponseFromMemory | Overloaded. Adds the contents of a memory block to the response. |
|
SendStatus | Specifies the HTTP status code and status description of the response, such as SendStatus(200, "Ok"). |
|
SendUnknownResponseHeader | Adds a nonstandard HTTP header to the response. |
|
SetEndOfSendNotification | Registers for an optional notification when all the response data is sent. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
HeaderAccept | Specifies the index number for the Accept HTTP header. |
|
HeaderAcceptCharset | Specifies the index number for the Accept-Charset HTTP header. |
|
HeaderAcceptEncoding | Specifies the index number for the Accept-Encoding HTTP header. |
|
HeaderAcceptLanguage | Specifies the index number for the Accept-Language HTTP header. |
|
HeaderAcceptRanges | Specifies the index number for the Accept-Ranges HTTP header. |
|
HeaderAge | Specifies the index number for the Age HTTP header. |
|
HeaderAllow | Specifies the index number for the Allow HTTP header. |
|
HeaderAuthorization | Specifies the index number for the Authorization HTTP header. |
|
HeaderCacheControl | The index that represents the HTTP Cache-Control HTTP header. |
|
HeaderConnection | Specifies the index number for the Connection HTTP header. |
|
HeaderContentEncoding | Specifies the index number for the Content-Encoding HTTP header. |
|
HeaderContentLanguage | Specifies the index number for the Content-Language HTTP header. |
|
HeaderContentLength | Specifies the index number for the Content-Length HTTP header. |
|
HeaderContentLocation | Specifies the index number for the Content-Location HTTP header. |
|
HeaderContentMd5 | Specifies the index number for the Content-MD5 HTTP header. |
|
HeaderContentRange | Specifies the index number for the Content-Range HTTP header. |
|
HeaderContentType | Specifies the index number for the Content-Type HTTP header. |
|
HeaderCookie | Specifies the index number for the Cookie HTTP header. |
|
HeaderDate | Specifies the index number for the Date HTTP header. |
|
HeaderEtag | Specifies the index number for the ETag HTTP header. |
|
HeaderExpect | Specifies the index number for the Except HTTP header. |
|
HeaderExpires | Specifies the index number for the Expires HTTP header. |
|
HeaderFrom | Specifies the index number for the From HTTP header. |
|
HeaderHost | Specifies the index number for the Host HTTP header. |
|
HeaderIfMatch | Specifies the index number for the If-Match HTTP header. |
|
HeaderIfModifiedSince | Specifies the index number for the If-Modified-Since HTTP header. |
|
HeaderIfNoneMatch | Specifies the index number for the If-None-Match HTTP header. |
|
HeaderIfRange | Specifies the index number for the If-Range HTTP header. |
|
HeaderIfUnmodifiedSince | Specifies the index number for the If-Unmodified-Since HTTP header. |
|
HeaderKeepAlive | Specifies the index number for the Keep-Alive HTTP header. |
|
HeaderLastModified | Specifies the index number for the Last-Modified HTTP header. |
|
HeaderLocation | Specifies the index number for the Location HTTP header. |
|
HeaderMaxForwards | Specifies the index number for the Max-Forwards HTTP header. |
|
HeaderPragma | Specifies the index number for the Pragma HTTP header. |
|
HeaderProxyAuthenticate | Specifies the index number for the Proxy-Authenticate HTTP header. |
|
HeaderProxyAuthorization | Specifies the index number for the Proxy-Authorization HTTP header. |
|
HeaderRange | Specifies the index number for the Range HTTP header. |
|
HeaderReferer | Specifies the index number for the Referer HTTP header. |
|
HeaderRetryAfter | Specifies the index number for the Retry-After HTTP header. |
|
HeaderServer | Specifies the index number for the Server HTTP header. |
|
HeaderSetCookie | Specifies the index number for the Set-Cookie HTTP header. |
|
HeaderTe | Specifies the index number for the TE HTTP header. |
|
HeaderTrailer | Specifies the index number for the Trailer HTTP header. |
|
HeaderTransferEncoding | Specifies the index number for the Transfer-Encoding HTTP header. |
|
HeaderUpgrade | Specifies the index number for the Upgrade HTTP header. |
|
HeaderUserAgent | Specifies the index number for the User-Agent HTTP header. |
|
HeaderVary | Specifies the index number for the Vary HTTP header. |
|
HeaderVia | Specifies the index number for the Via HTTP header. |
|
HeaderWarning | Specifies the index number for the Warning HTTP header. |
|
HeaderWwwAuthenticate | Specifies the index number for the WWW-Authenticate HTTP header. |
|
ReasonCachePolicy | Infrastructure. Specifies a reason for the request. |
|
ReasonCacheSecurity | Infrastructure. Specifies a reason for the request. |
|
ReasonClientDisconnect | Infrastructure. Specifies a reason for the request. |
|
ReasonDefault | Infrastructure. Specifies a reason for the request. The default value is ReasonResponseCacheMiss. |
|
ReasonFileHandleCacheMiss | Infrastructure. Specifies a reason for the request. |
|
ReasonResponseCacheMiss | Infrastructure. Specifies a reason for the request. |
|
RequestHeaderMaximum | Specifies the index number for the Maximum HTTP request header. |
|
ResponseHeaderMaximum | Specifies the index number for the Maximum HTTP response header. |
| Name | Description | |
|---|---|---|
|
MachineConfigPath | Gets the full physical path to the Machine.config file. |
|
MachineInstallDirectory | Gets the physical path to the directory where the ASP.NET binaries are installed. |
|
RequestTraceIdentifier | Gets the corresponding Event Tracking for Windows trace ID for the current request. |
|
RootWebConfigPath | Gets the full physical path to the root Web.config file. |