HttpWorkerRequest Members

This abstract class defines the base worker methods and enumerations used by ASP.NET managed code to process requests.

The following tables list the members exposed by the HttpWorkerRequest type.

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

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

  Name Description
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

(see also Protected Methods )
  Name Description
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  Overloaded. Determines whether two Object instances are equal. (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 When overridden in a derived class, returns the application pool ID for the current URL.
Public method GetBytesRead Gets the number of bytes read in from the client.
Public method GetClientCertificate 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 Gets the certificate issuer, in binary format.
Public method GetClientCertificateEncoding When overridden in a derived class, returns the Encoding object in which the client certificate was encoded.
Public method GetClientCertificatePublicKey When overridden in a derived class, gets a PublicKey object associated with the client certificate.
Public method GetClientCertificateValidFrom When overridden in a derived class, gets the date when the certificate becomes valid. The date varies with international settings.
Public method GetClientCertificateValidUntil Gets the certificate expiration date.
Public method GetConnectionID 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 GetKnownRequestHeaderIndex Returns the index number of the specified HTTP request header.
Public method Static GetKnownRequestHeaderName Returns the name of the specified HTTP request header.
Public method Static GetKnownResponseHeaderIndex Returns the index number of the specified HTTP response header.
Public method Static 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 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 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 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 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.
Public method ReadEntityBody Overloaded. Overloaded. Reads request data from the client (when not preloaded).
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
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; for example 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

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

Community Additions

ADD
Show: