HttpWorkerRequest Methods

(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. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (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 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: