Property | Type | Description | |
---|---|---|---|
RequestHeaders | HttpHeaders | ||
RequestLine | |||
ResponseHeaders | HttpHeaders | ||
ResponseStatusLine | |||
State | RequestProcessingState |
Method | Description | |
---|---|---|
BaseProxyLogic ( |
Base proxy constructor (an arbitrary intermediate step between AbstractProxyLogic, and ProxyLogic)
|
|
LogicLoop ( ) : bool |
Implement a base proxy logic. The procedure is called for each request as long as it returns true.
|
Method | Description | |
---|---|---|
AbortRequest ( ) : void |
Pipeline step: close the connections and stop
|
|
HandleConnect ( ) : void |
A specific case for the CONNECT command, connect both ends blindly (will work for HTTPS, SSH and others)
|
|
OnReceiveRequest ( ) : void |
Called when RequestLine and RequestHeaders are set May be used to override State.NextStep |
|
OnReceiveResponse ( ) : void |
Called when ResponseStatusLine and ResponseHeaders are set May be used to override State.NextStep |
|
ReadRequest ( ) : void |
Pipeline step: read the HTTP request from the client, schedule the next step to be
|
|
ReadResponse ( ) : void |
Pipeline step: read the HTTP response from the local client, schedule the next step to be
|
|
SendRequest ( ) : void |
Pipeline step: tunnel the request from the client to the remove server, and schedule the next step to be
|
|
SendResponse ( ) : void |
Pipeline: tunnel the HTTP response from the remote server to the local client, and end the request processing
|
|
SendResponseStatusAndHeaders ( ) : void |
Send the response status line and headers from the proxy to the client
|
Method | Description | |
---|---|---|
HandleWebSocket ( ) : void |
Handle a websocket handshake and tunnel the two ends
|
public BaseProxyLogic ( |
||
socketBP | ||
return | System |
protected SendResponseStatusAndHeaders ( ) : void | ||
return | void |
protected HttpRequestLine,TrotiNet RequestLine | ||
return |
protected HttpStatusLine,TrotiNet ResponseStatusLine | ||
return |