This documentation is archived and is not being maintained.

HttpWorkerRequest Methods

The methods of the HttpWorkerRequest class are listed here. For a complete list of HttpWorkerRequest class members, see the HttpWorkerRequest Members topic.

Public Methods

public methodCloseConnection Terminates the connection with the client.
public methodEndOfRequest Used by the runtime to notify the HttpWorkerRequest that request processing for the current request is complete.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodFlushResponse Sends all pending response data to the client.
public methodGetAppPath Returns the virtual path to the currently executing server application.
public methodGetAppPathTranslated Returns the physical path to the currently executing server application.
public methodGetFilePath When overridden in a derived class, returns the physical path to the requested URI.
public methodGetFilePathTranslated 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 methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetHttpVerbName Returns the specified member of the request header.
public methodGetHttpVersion Provides access to the HTTP version of the request (for example, "HTTP/1.1").
public methodGetKnownRequestHeader Returns the standard HTTP request header that corresponds to the specified index.
public methodstatic (Shared in Visual Basic)GetKnownRequestHeaderIndex Returns the index number of the specified HTTP request header.
public methodstatic (Shared in Visual Basic)GetKnownRequestHeaderName Returns the name of the specified HTTP request header.
public methodstatic (Shared in Visual Basic)GetKnownResponseHeaderIndex Returns the index number of the specified HTTP response header.
public methodstatic (Shared in Visual Basic)GetKnownResponseHeaderName Returns the name of the specified HTTP response header.
public methodGetLocalAddress Provides access to the specified member of the request header.
public methodGetLocalPort Provides access to the specified member of the request header.
public methodGetPathInfo 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 methodGetPreloadedEntityBody Returns the portion of the HTTP request body that has already been read.
public methodGetProtocol When overridden in a derived class, returns the HTTP protocol (HTTP or HTTPS).
public methodGetQueryString Returns the query string specified in the request URL.
public methodGetQueryStringRawBytes When overridden in a derived class, returns the response query string as an array of bytes.
public methodGetRawUrl Returns the URL path contained in the request header with the query string appended.
public methodGetRemoteAddress Provides access to the specified member of the request header.
public methodGetRemoteName When overridden in a derived class, returns the name of the client computer.
public methodGetRemotePort Provides access to the specified member of the request header.
public methodGetServerName When overridden in a derived class, returns the name of the local server.
public methodGetServerVariable Returns a single server variable from a dictionary of server variables associated with the request.
public methodstatic (Shared in Visual Basic)GetStatusDescription Returns a string that describes the name of the specified HTTP status code.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodGetUnknownRequestHeader Returns a nonstandard HTTP request header value.
public methodGetUnknownRequestHeaders Get all nonstandard HTTP header name-value pairs.
public methodGetUriPath Returns the virtual path to the requested URI.
public methodGetUserToken When overridden in a derived class, returns the client's impersonation token.
public methodHasEntityBody Returns a value indicating whether the request contains body data.
public methodHeadersSent Returns a value indicating whether HTTP response headers have been sent to the client for the current request.
public methodIsClientConnected Returns a value indicating whether the client connection is still active.
public methodIsEntireEntityBodyIsPreloaded Returns a value indicating whether all request data is available and no further reads from the client are required.
public methodIsSecure Returns a value indicating whether the connection uses SSL.
public methodMapPath Returns the physical path corresponding to the specified virtual path.
public methodReadEntityBody Reads request data from the client (when not preloaded).
public methodSendCalculatedContentLength Adds a Content-Length HTTP header to the response.
public methodSendKnownResponseHeader Adds a standard HTTP header to the response.
public methodSendResponseFromFile Overloaded. Adds the contents of a file to the response.
public methodSendResponseFromMemory Overloaded. Adds the contents of a memory block to the response.
public methodSendStatus Specifies the HTTP status code and status description of the response; for example SendStatus(200, "Ok").
public methodSendUnknownResponseHeader Adds a nonstandard HTTP header to the response.
public methodSetEndOfSendNotification Registers for an optional notification when all the response data is sent.
public methodToString (inherited from Object) Returns a String that represents the current Object.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

HttpWorkerRequest Class | System.Web Namespace

Show: