Handler class for HTTP proxy connections. This is the main class that processes connections for HTTP client, server and proxy services.


The following tables list the members exposed by HTTPHandler.

Public Constructors

  Name Description
Static Public method HTTPHandler Overloaded. Initializes a new instance of the HTTPHandler class.
Top

Public Fields

  Name Description
Public field clientReceiveState The status of the connection with the client.
Public field clientSocket The socket that handles communications with the client (inherited from Handler)
Public field New Handler is new or has been reused, internal use only
Top

Protected Fields

  Name Description
Family field ServerStateLock Synchronisation object for server comms.
Top

Public Properties

  Name Description
Public property Blocked Used by external applications to monitor blocked state between events
Public property Chunked Indicates if response uses chunked encoding
Public property ChunkReceived How much of current chunk has been received
Public property ChunkSize Size of current chunk to be received
Public property ClientAddress IP Address of client
Public property ClientHostname Host name of client
Public property ClientRequest The HTTP request from the client browser or application
Public property ClientResponse The HTTP response being returned to the client
Public property DataTrace Indicates whether data debug tracing is enabled or not
Public property EnableTrace Indicates whether debug tracing is enabled or not
Public property FinishTime The time that this connection was completed
Public property ID A unique identifier for this connection
Public property LogPath Path for log files
Public property RemoteAddress IP Address or proxy server as seend by servers and clients
Public property RemoteHostname Host name of proxy server as seen by servers and clients
Public property RequestID A unique identifier for the current request
Public property ServedFromCache Indicates whether the response was served from cache or an origin server
Public property ServerAddress IP Address of server
Public property ServerHostname Host name of server
Public property ServerRemoteAddress IP Address of server as presented to client
Public property ServerRemoteHostname Host name of server as presented to client
Public property ServerRequest The HTTP request being sent to the server
Public property ServerResponse The HTTP response received from the server
Public property ServerSocket Buffered socket for async. communications to the origin server
Public property ServerState Enumerator indicating state of connection with server
Public property Service The service that this handler is associated with (inherited from Handler)
Public property ShutdownOnCompletion Determine whether client socket should be shutdown on completion of request or kept open for pipelined requests
Public property StartTime The time that this connection was initiated
Top

Public Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (inherited from Object)
Public method FireDone Helper method to verify and fire the Done event (inherited from Handler)
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 GetType Gets the Type of the current instance. (inherited from Object)
Public method Go Overridden. The main method used to process connections
Public method SendRequestToServer Sends a HTTP request to an origin server.
Public method SendResponseToClient Sends a HTTP response to the client connected to this handler
Public method Shutdown Shuts down communication with the client and fires the Done event
Public method ToString Returns a String that represents the current Object. (inherited from Object)
Top

Protected Methods

  Name Description
Family 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)
Family method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object)
Family method OnConnect Callback for connection to origin server
Family method TraceWriteLine Trace debug output
Top

Public Events

  Name Description
Public event Done Fired when the request is complete (inherited from Handler)
Public event RequestReceived This event is fired when a request is received from a client (browser or application)
Public event RequestSent This event is fired when a request has been successfully sent to an origin server
Public event ResponseReceived This event is fired when a response is received from an origin server
Public event ResponseSent This event is fired when a response has been sent to a client browser or application
Top

Explicit Interface Implementations

  Name Description
Static Private method HTTPHandler Overloaded. Initializes a new instance of the HTTPHandler class.
Top

See Also