Class TunnelConnectFailureEventArgs
Raised when optional pre-200 upstream connectivity verification fails for a CONNECT tunnel (EstablishServerConnectionBeforeResponse). Handlers may replace Response with a custom HTTP error before it is written to the client (no TLS has been started yet).
Inherited Members
Namespace: Titanium.Web.Proxy.EventArguments
Assembly: Titanium.Web.Proxy.dll
Syntax
public class TunnelConnectFailureEventArgs : ProxyEventArgsBase
Properties
| Edit this page View SourceException
The exception from DNS/TCP/upstream-proxy CONNECT. May be UpstreamProxyConnectException when an HTTP upstream rejected CONNECT.
Declaration
public Exception Exception { get; }
Property Value
| Type | Description |
|---|---|
| Exception |
Response
HTTP response that will be sent to the client instead of 200 Connection Established. Replace to customize status/body. Defaults to 502, or the upstream status when Exception is UpstreamProxyConnectException.
Declaration
public Response Response { get; set; }
Property Value
| Type | Description |
|---|---|
| Response |
Session
The CONNECT session that failed upstream connectivity verification.
Declaration
public TunnelConnectSessionEventArgs Session { get; }
Property Value
| Type | Description |
|---|---|
| TunnelConnectSessionEventArgs |