This documentation is archived and is not being maintained.

HttpWorkerRequest Members

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.

  NameDescription
Protected method HttpWorkerRequest Initializes a new instance of the HttpWorkerRequest class.
Top

  NameDescription
Public method CloseConnection Terminates the connection with the client.
Public method EndOfRequest Used by the runtime to notify the HttpWorkerRequest that request processing for the current request is complete.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method FlushResponse Sends all pending response data to the client.
Public method GetAppPath Returns the virtual path to the currently executing server application.
Public method GetAppPathTranslated Returns the physical path to the currently executing server application.
Public method GetAppPoolID Infrastructure. When overridden in a derived class, returns the application pool ID for the current URL.
Public method GetBytesRead Infrastructure. Gets the number of bytes read in from the client.
Public method 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.
Public method GetClientCertificateBinaryIssuer Infrastructure. Gets the certificate issuer, in binary format.
Public method GetClientCertificateEncoding Infrastructure. When overridden in a derived class, returns the Encoding object in which the client certificate was encoded.
Public method GetClientCertificatePublicKey Infrastructure. When overridden in a derived class, gets a PublicKey object associated with the client certificate.
Public method GetClientCertificateValidFrom Infrastructure. When overridden in a derived class, gets the date when the certificate becomes valid. The date varies with international settings.
Public method GetClientCertificateValidUntil Infrastructure. Gets the certificate expiration date.
Public method GetConnectionID Infrastructure. When overridden in a derived class, returns the ID of the current connection.
Public method GetFilePath When overridden in a derived class, returns the virtual path to the requested URI.
Public method 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")
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetHttpVerbName Returns the specified member of the request header.
Public method GetHttpVersion Provides access to the HTTP version of the request (for example, "HTTP/1.1").
Public method GetKnownRequestHeader Returns the standard HTTP request header that corresponds to the specified index.
Public method Static member GetKnownRequestHeaderIndex Returns the index number of the specified HTTP request header.
Public method Static member GetKnownRequestHeaderName Returns the name of the specified HTTP request header.
Public method Static member GetKnownResponseHeaderIndex Returns the index number of the specified HTTP response header.
Public method Static member GetKnownResponseHeaderName Returns the name of the specified HTTP response header.
Public method GetLocalAddress Provides access to the specified member of the request header.
Public method GetLocalPort Provides access to the specified member of the request header.
Public method 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.
Public method GetPreloadedEntityBody Overloaded. Overloaded. Returns the portion of the HTTP request body that has currently been read.
Public method GetPreloadedEntityBodyLength Gets the length of the portion of the HTTP request body that has currently been read.
Public method GetProtocol When overridden in a derived class, returns the HTTP protocol (HTTP or HTTPS).
Public method GetQueryString Returns the query string specified in the request URL.
Public method GetQueryStringRawBytes When overridden in a derived class, returns the response query string as an array of bytes.
Public method GetRawUrl Returns the URL path contained in the request header with the query string appended.
Public method GetRemoteAddress Provides access to the specified member of the request header.
Public method GetRemoteName When overridden in a derived class, returns the name of the client computer.
Public method GetRemotePort Provides access to the specified member of the request header.
Public method GetRequestReason Infrastructure. When overridden in a derived class, returns the reason for the request.
Public method GetServerName When overridden in a derived class, returns the name of the local server.
Public method GetServerVariable Returns a single server variable from a dictionary of server variables associated with the request.
Public method Static member GetStatusDescription Returns a string that describes the name of the specified HTTP status code.
Public method GetTotalEntityBodyLength Gets the length of the entire HTTP request body.
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method GetUnknownRequestHeader Returns a nonstandard HTTP request header value.
Public method GetUnknownRequestHeaders Get all nonstandard HTTP header name-value pairs.
Public method GetUriPath Returns the virtual path to the requested URI.
Public method GetUrlContextID Infrastructure. When overridden in a derived class, returns the context ID of the current connection.
Public method GetUserToken When overridden in a derived class, returns the client's impersonation token.
Public method GetVirtualPathToken Infrastructure. Gets the impersonation token for the request virtual path.
Public method HasEntityBody Returns a value indicating whether the request contains body data.
Public method HeadersSent Returns a value indicating whether HTTP response headers have been sent to the client for the current request.
Public method IsClientConnected Returns a value indicating whether the client connection is still active.
Public method IsEntireEntityBodyIsPreloaded Returns a value indicating whether all request data is available and no further reads from the client are required.
Public method IsSecure Returns a value indicating whether the connection uses SSL.
Public method MapPath Returns the physical path corresponding to the specified virtual path.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ReadEntityBody Overloaded. Overloaded. Reads request data from the client (when not preloaded).
Public method SendCalculatedContentLength Overloaded. Adds a Content-Length HTTP header to the response.
Public method SendKnownResponseHeader Adds a standard HTTP header to the response.
Public method SendResponseFromFile Overloaded. Adds the contents of a file to the response.
Public method SendResponseFromMemory Overloaded. Adds the contents of a memory block to the response.
Public method SendStatus Specifies the HTTP status code and status description of the response, such as SendStatus(200, "Ok").
Public method SendUnknownResponseHeader Adds a nonstandard HTTP header to the response.
Public method SetEndOfSendNotification Registers for an optional notification when all the response data is sent.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public field Static member HeaderAccept Specifies the index number for the Accept HTTP header.
Public field Static member HeaderAcceptCharset Specifies the index number for the Accept-Charset HTTP header.
Public field Static member HeaderAcceptEncoding Specifies the index number for the Accept-Encoding HTTP header.
Public field Static member HeaderAcceptLanguage Specifies the index number for the Accept-Language HTTP header.
Public field Static member HeaderAcceptRanges Specifies the index number for the Accept-Ranges HTTP header.
Public field Static member HeaderAge Specifies the index number for the Age HTTP header.
Public field Static member HeaderAllow Specifies the index number for the Allow HTTP header.
Public field Static member HeaderAuthorization Specifies the index number for the Authorization HTTP header.
Public field Static member HeaderCacheControl The index that represents the HTTP Cache-Control HTTP header.
Public field Static member HeaderConnection Specifies the index number for the Connection HTTP header.
Public field Static member HeaderContentEncoding Specifies the index number for the Content-Encoding HTTP header.
Public field Static member HeaderContentLanguage Specifies the index number for the Content-Language HTTP header.
Public field Static member HeaderContentLength Specifies the index number for the Content-Length HTTP header.
Public field Static member HeaderContentLocation Specifies the index number for the Content-Location HTTP header.
Public field Static member HeaderContentMd5 Specifies the index number for the Content-MD5 HTTP header.
Public field Static member HeaderContentRange Specifies the index number for the Content-Range HTTP header.
Public field Static member HeaderContentType Specifies the index number for the Content-Type HTTP header.
Public field Static member HeaderCookie Specifies the index number for the Cookie HTTP header.
Public field Static member HeaderDate Specifies the index number for the Date HTTP header.
Public field Static member HeaderEtag Specifies the index number for the ETag HTTP header.
Public field Static member HeaderExpect Specifies the index number for the Except HTTP header.
Public field Static member HeaderExpires Specifies the index number for the Expires HTTP header.
Public field Static member HeaderFrom Specifies the index number for the From HTTP header.
Public field Static member HeaderHost Specifies the index number for the Host HTTP header.
Public field Static member HeaderIfMatch Specifies the index number for the If-Match HTTP header.
Public field Static member HeaderIfModifiedSince Specifies the index number for the If-Modified-Since HTTP header.
Public field Static member HeaderIfNoneMatch Specifies the index number for the If-None-Match HTTP header.
Public field Static member HeaderIfRange Specifies the index number for the If-Range HTTP header.
Public field Static member HeaderIfUnmodifiedSince Specifies the index number for the If-Unmodified-Since HTTP header.
Public field Static member HeaderKeepAlive Specifies the index number for the Keep-Alive HTTP header.
Public field Static member HeaderLastModified Specifies the index number for the Last-Modified HTTP header.
Public field Static member HeaderLocation Specifies the index number for the Location HTTP header.
Public field Static member HeaderMaxForwards Specifies the index number for the Max-Forwards HTTP header.
Public field Static member HeaderPragma Specifies the index number for the Pragma HTTP header.
Public field Static member HeaderProxyAuthenticate Specifies the index number for the Proxy-Authenticate HTTP header.
Public field Static member HeaderProxyAuthorization Specifies the index number for the Proxy-Authorization HTTP header.
Public field Static member HeaderRange Specifies the index number for the Range HTTP header.
Public field Static member HeaderReferer Specifies the index number for the Referer HTTP header.
Public field Static member HeaderRetryAfter Specifies the index number for the Retry-After HTTP header.
Public field Static member HeaderServer Specifies the index number for the Server HTTP header.
Public field Static member HeaderSetCookie Specifies the index number for the Set-Cookie HTTP header.
Public field Static member HeaderTe Specifies the index number for the TE HTTP header.
Public field Static member HeaderTrailer Specifies the index number for the Trailer HTTP header.
Public field Static member HeaderTransferEncoding Specifies the index number for the Transfer-Encoding HTTP header.
Public field Static member HeaderUpgrade Specifies the index number for the Upgrade HTTP header.
Public field Static member HeaderUserAgent Specifies the index number for the User-Agent HTTP header.
Public field Static member HeaderVary Specifies the index number for the Vary HTTP header.
Public field Static member HeaderVia Specifies the index number for the Via HTTP header.
Public field Static member HeaderWarning Specifies the index number for the Warning HTTP header.
Public field Static member HeaderWwwAuthenticate Specifies the index number for the WWW-Authenticate HTTP header.
Public field Static member ReasonCachePolicy Infrastructure. Specifies a reason for the request.
Public field Static member ReasonCacheSecurity Infrastructure. Specifies a reason for the request.
Public field Static member ReasonClientDisconnect Infrastructure. Specifies a reason for the request.
Public field Static member ReasonDefault Infrastructure. Specifies a reason for the request. The default value is ReasonResponseCacheMiss.
Public field Static member ReasonFileHandleCacheMiss Infrastructure. Specifies a reason for the request.
Public field Static member ReasonResponseCacheMiss Infrastructure. Specifies a reason for the request.
Public field Static member RequestHeaderMaximum Specifies the index number for the Maximum HTTP request header.
Public field Static member ResponseHeaderMaximum Specifies the index number for the Maximum HTTP response header.
Top

  NameDescription
Public property MachineConfigPath Gets the full physical path to the Machine.config file.
Public property MachineInstallDirectory Gets the physical path to the directory where the ASP.NET binaries are installed.
Public property RequestTraceIdentifier Gets the corresponding Event Tracking for Windows trace ID for the current request.
Public property RootWebConfigPath Gets the full physical path to the root Web.config file.
Top
Show: