Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

HttpWorkerRequest Methods

The HttpWorkerRequest type exposes the following members.

  Name Description
Public method BeginFlush Sends the currently buffered response to the client.
Public method BeginRead Begins an asynchronous read operation of the request entity body.
Public method CloseConnection Terminates the connection with the client.
Public method EndFlush Waits for the pending asynchronous flush operation to complete.
Public method EndOfRequest Used by the runtime to notify the HttpWorkerRequest that request processing for the current request is complete.
Public method EndRead Waits for the pending asynchronous read operation to complete.
Public method Equals(Object) 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 the default hash function. (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() Returns the portion of the HTTP request body that has already been read.
Public method GetPreloadedEntityBody(Byte[], Int32) Gets the portion of the HTTP request body that has currently been read by using the specified buffer data and byte offset.
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(Byte[], Int32) Reads request data from the client (when not preloaded).
Public method ReadEntityBody(Byte[], Int32, Int32) Reads request data from the client (when not preloaded) by using the specified buffer to read from, byte offset, and maximum bytes.
Public method SendCalculatedContentLength(Int32) Adds a Content-Length HTTP header to the response for message bodies that are less than or equal to 2 GB.
Public method SendCalculatedContentLength(Int64) Adds a Content-Length HTTP header to the response for message bodies that are greater than 2 GB.
Public method SendKnownResponseHeader Adds a standard HTTP header to the response.
Public method SendResponseFromFile(IntPtr, Int64, Int64) 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.
Public method SendResponseFromFile(String, Int64, Int64) 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.
Public method SendResponseFromMemory(Byte[], Int32) Adds the specified number of bytes from a byte array to the response.
Public method SendResponseFromMemory(IntPtr, Int32) Adds the specified number of bytes from a block of memory 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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.