DekGenius.com
[ Team LiB ] Previous Section Next Section

SimpleWorkerRequest

System.Web.Hosting (system.web.dll)class

This class extends the abstract System.Web.HttpWorkerRequest class. It provides features that allow you to read the incoming HTTP request and send an appropriate HTTP response. You can retrieve the URL request with the query string appended (through GetRawUrl( )), a server variable by name from a dictionary collection (GetServerVariable( )), and the physical file path of the requested URL (GetFilePathTranslated( )). You send a response as a series of bytes with the SendResponseFromFile( ) or SendResponseFromMemory( ) methods. Use FlushResponse( ) to send all pending data to the client. If you want to provide higher-level methods or properties, such as those found in the System.Web.HttpResponse and System.Web.HttpRequest classes, you should extend SimpleWorkerRequest.

public class SimpleWorkerRequest : System.Web.HttpWorkerRequest {
// Public Constructors
   public SimpleWorkerRequest(string appVirtualDir, string appPhysicalDir, string page, string query, 
         System.IO.TextWriter output);
   public SimpleWorkerRequest(string page, string query, System.IO.TextWriter output);
// Public Instance Properties
   public override string MachineConfigPath{get; }   // overrides System.Web.HttpWorkerRequest
   public override string MachineInstallDirectory{get; }  // overrides System.Web.HttpWorkerRequest
// Public Instance Methods
   public override void EndOfRequest( );             // overrides System.Web.HttpWorkerRequest
   public override void FlushResponse(bool finalFlush); // overrides System.Web.HttpWorkerRequest
   public override string GetAppPath( );             // overrides System.Web.HttpWorkerRequest
   public override string GetAppPathTranslated( );   // overrides System.Web.HttpWorkerRequest
   public override string GetFilePath( );            // overrides System.Web.HttpWorkerRequest
   public override string GetFilePathTranslated( );  // overrides System.Web.HttpWorkerRequest
   public override string GetHttpVerbName( );        // overrides System.Web.HttpWorkerRequest
   public override string GetHttpVersion( );         // overrides System.Web.HttpWorkerRequest
   public override string GetLocalAddress( );        // overrides System.Web.HttpWorkerRequest
   public override int GetLocalPort( );              // overrides System.Web.HttpWorkerRequest
   public override string GetPathInfo( );            // overrides System.Web.HttpWorkerRequest
   public override string GetQueryString( );         // overrides System.Web.HttpWorkerRequest
   public override string GetRawUrl( );              // overrides System.Web.HttpWorkerRequest
   public override string GetRemoteAddress( );       // overrides System.Web.HttpWorkerRequest
   public override int GetRemotePort( );             // overrides System.Web.HttpWorkerRequest
   public override string GetServerVariable(string name);   // overrides System.Web.HttpWorkerRequest
   public override string GetUriPath( );             // overrides System.Web.HttpWorkerRequest
   public override IntPtr GetUserToken( );           // overrides System.Web.HttpWorkerRequest
   public override string MapPath(string path);   // overrides System.Web.HttpWorkerRequest
   public override void SendKnownResponseHeader(int index, string value);// overrides System.Web.HttpWorkerRequest
   public override void SendResponseFromFile(IntPtr handle, long offset, 
        long length);// overrides System.Web.HttpWorkerRequest
   public override void SendResponseFromFile(string filename, long offset, 
        long length); // overrides System.Web.HttpWorkerRequest
   public override void SendResponseFromMemory(byte[ ] data, int length);// overrides System.Web.HttpWorkerRequest
   public override void SendStatus(int statusCode,  
        string statusDescription);// overrides System.Web.HttpWorkerRequest
   public override void SendUnknownResponseHeader(string name, 
        string value); // overrides System.Web.HttpWorkerRequest
}

Hierarchy

System.Object System.Web.HttpWorkerRequest(System.Web.IHttpMapPath) SimpleWorkerRequest

    [ Team LiB ] Previous Section Next Section