This documentation is archived and is not being maintained.
HttpWorkerRequest Methods
.NET Framework 1.1
The methods of the HttpWorkerRequest class are listed here. For a complete list of HttpWorkerRequest class members, see the HttpWorkerRequest Members topic.
Public Methods
CloseConnection | Terminates the connection with the client. |
EndOfRequest | Used by the runtime to notify the HttpWorkerRequest that request processing for the current request is complete. |
Equals (inherited from Object) | Overloaded. Determines whether two Object instances are equal. |
FlushResponse | Sends all pending response data to the client. |
GetAppPath | Returns the virtual path to the currently executing server application. |
GetAppPathTranslated | Returns the physical path to the currently executing server application. |
GetFilePath | When overridden in a derived class, returns the physical path to the requested URI. |
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") |
GetHashCode (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. |
GetHttpVerbName | Returns the specified member of the request header. |
GetHttpVersion | Provides access to the HTTP version of the request (for example, "HTTP/1.1"). |
GetKnownRequestHeader | Returns the standard HTTP request header that corresponds to the specified index. |
![]() GetKnownRequestHeaderIndex | Returns the index number of the specified HTTP request header. |
![]() GetKnownRequestHeaderName | Returns the name of the specified HTTP request header. |
![]() GetKnownResponseHeaderIndex | Returns the index number of the specified HTTP response header. |
![]() GetKnownResponseHeaderName | Returns the name of the specified HTTP response header. |
GetLocalAddress | Provides access to the specified member of the request header. |
GetLocalPort | Provides access to the specified member of the request header. |
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. |
GetPreloadedEntityBody | Returns the portion of the HTTP request body that has already been read. |
GetProtocol | When overridden in a derived class, returns the HTTP protocol (HTTP or HTTPS). |
GetQueryString | Returns the query string specified in the request URL. |
GetQueryStringRawBytes | When overridden in a derived class, returns the response query string as an array of bytes. |
GetRawUrl | Returns the URL path contained in the request header with the query string appended. |
GetRemoteAddress | Provides access to the specified member of the request header. |
GetRemoteName | When overridden in a derived class, returns the name of the client computer. |
GetRemotePort | Provides access to the specified member of the request header. |
GetServerName | When overridden in a derived class, returns the name of the local server. |
GetServerVariable | Returns a single server variable from a dictionary of server variables associated with the request. |
![]() GetStatusDescription | Returns a string that describes the name of the specified HTTP status code. |
GetType (inherited from Object) | Gets the Type of the current instance. |
GetUnknownRequestHeader | Returns a nonstandard HTTP request header value. |
GetUnknownRequestHeaders | Get all nonstandard HTTP header name-value pairs. |
GetUriPath | Returns the virtual path to the requested URI. |
GetUserToken | When overridden in a derived class, returns the client's impersonation token. |
HasEntityBody | Returns a value indicating whether the request contains body data. |
HeadersSent | Returns a value indicating whether HTTP response headers have been sent to the client for the current request. |
IsClientConnected | Returns a value indicating whether the client connection is still active. |
IsEntireEntityBodyIsPreloaded | Returns a value indicating whether all request data is available and no further reads from the client are required. |
IsSecure | Returns a value indicating whether the connection uses SSL. |
MapPath | Returns the physical path corresponding to the specified virtual path. |
ReadEntityBody | Reads request data from the client (when not preloaded). |
SendCalculatedContentLength | Adds a Content-Length HTTP header to the response. |
SendKnownResponseHeader | Adds a standard HTTP header to the response. |
SendResponseFromFile | Overloaded. Adds the contents of a file to the response. |
SendResponseFromMemory | Overloaded. Adds the contents of a memory block to the response. |
SendStatus | Specifies the HTTP status code and status description of the response; for example SendStatus(200, "Ok"). |
SendUnknownResponseHeader | Adds a nonstandard HTTP header to the response. |
SetEndOfSendNotification | Registers for an optional notification when all the response data is sent. |
ToString (inherited from Object) | Returns a String that represents the current Object. |
Protected Methods
Finalize (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. |
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object. |
See Also
Show:
