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 | |
|---|---|---|
|
HTTPHandler | Overloaded. Initializes a new instance of the |
Public Fields
| Name | Description | |
|---|---|---|
|
clientReceiveState | The status of the connection with the client. |
|
clientSocket | The socket that handles communications with the client (inherited from Handler) |
|
New | Handler is new or has been reused, internal use only |
Protected Fields
| Name | Description | |
|---|---|---|
|
ServerStateLock | Synchronisation object for server comms. |
Public Properties
| Name | Description | |
|---|---|---|
|
Blocked | Used by external applications to monitor blocked state between events |
|
Chunked | Indicates if response uses chunked encoding |
|
ChunkReceived | How much of current chunk has been received |
|
ChunkSize | Size of current chunk to be received |
|
ClientAddress | IP Address of client |
|
ClientHostname | Host name of client |
|
ClientRequest | The HTTP request from the client browser or application |
|
ClientResponse | The HTTP response being returned to the client |
|
DataTrace | Indicates whether data debug tracing is enabled or not |
|
EnableTrace | Indicates whether debug tracing is enabled or not |
|
FinishTime | The time that this connection was completed |
|
ID | A unique identifier for this connection |
|
LogPath | Path for log files |
|
RemoteAddress | IP Address or proxy server as seend by servers and clients |
|
RemoteHostname | Host name of proxy server as seen by servers and clients |
|
RequestID | A unique identifier for the current request |
|
ServedFromCache | Indicates whether the response was served from cache or an origin server |
|
ServerAddress | IP Address of server |
|
ServerHostname | Host name of server |
|
ServerRemoteAddress | IP Address of server as presented to client |
|
ServerRemoteHostname | Host name of server as presented to client |
|
ServerRequest | The HTTP request being sent to the server |
|
ServerResponse | The HTTP response received from the server |
|
ServerSocket | Buffered socket for async. communications to the origin server |
|
ServerState | Enumerator indicating state of connection with server |
|
Service | The service that this handler is associated with (inherited from Handler) |
|
ShutdownOnCompletion | Determine whether client socket should be shutdown on completion of request or kept open for pipelined requests |
|
StartTime | The time that this connection was initiated |
Public Methods
| Name | Description | |
|---|---|---|
|
Equals | Determines whether the specified |
|
FireDone | Helper method to verify and fire the Done event (inherited from Handler) |
|
GetHashCode | Serves as a hash function for a particular type. |
|
GetType | Gets the |
|
Go | Overridden. The main method used to process connections |
|
SendRequestToServer | Sends a HTTP request to an origin server. |
|
SendResponseToClient | Sends a HTTP response to the client connected to this handler |
|
Shutdown | Shuts down communication with the client and fires the Done event |
|
ToString | Returns a |
Protected Methods
| Name | Description | |
|---|---|---|
|
Finalize | Allows an |
|
MemberwiseClone | Creates a shallow copy of the current |
|
OnConnect | Callback for connection to origin server |
|
TraceWriteLine | Trace debug output |
Public Events
| Name | Description | |
|---|---|---|
|
Done | Fired when the request is complete (inherited from Handler) |
|
RequestReceived | This event is fired when a request is received from a client (browser or application) |
|
RequestSent | This event is fired when a request has been successfully sent to an origin server |
|
ResponseReceived | This event is fired when a response is received from an origin server |
|
ResponseSent | This event is fired when a response has been sent to a client browser or application |
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
|
HTTPHandler | Overloaded. Initializes a new instance of the |