Class UpstreamProxyConnectException
Thrown when an HTTP upstream proxy rejects a CONNECT tunnel (or otherwise fails to establish one) with a non-success response. Carries the upstream status, headers, and a bounded body snapshot for diagnostics. Relaying that response to the client is only safe before the client-facing CONNECT 200 has been committed — enable EstablishServerConnectionBeforeResponse and handle BeforeTunnelConnectFailure (issue #768).
Implements
Inherited Members
Namespace: Titanium.Web.Proxy.Exceptions
Assembly: Titanium.Web.Proxy.dll
Syntax
public class UpstreamProxyConnectException : ProxyException, ISerializable
Properties
| Edit this page View SourceBodyPreview
Bounded UTF-8 preview of the upstream response body, if any was present.
Declaration
public string? BodyPreview { get; }
Property Value
| Type | Description |
|---|---|
| string |
Headers
Snapshot of upstream response headers (single value per header name).
Declaration
public IReadOnlyDictionary<string, string> Headers { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyDictionary<string, string> |
StatusCode
Upstream HTTP status code (for example 403 or 407).
Declaration
public int StatusCode { get; }
Property Value
| Type | Description |
|---|---|
| int |
StatusDescription
Upstream reason phrase.
Declaration
public string StatusDescription { get; }
Property Value
| Type | Description |
|---|---|
| string |