Search Results for

    Show / Hide Table of Contents

    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).

    Inheritance
    object
    Exception
    ProxyException
    UpstreamProxyConnectException
    Implements
    ISerializable
    Inherited Members
    Exception.GetBaseException()
    Exception.GetType()
    Exception.ToString()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    Exception.SerializeObjectState
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Titanium.Web.Proxy.Exceptions
    Assembly: Titanium.Web.Proxy.dll
    Syntax
    public class UpstreamProxyConnectException : ProxyException, ISerializable

    Properties

    | Edit this page View Source

    BodyPreview

    Bounded UTF-8 preview of the upstream response body, if any was present.

    Declaration
    public string? BodyPreview { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    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>
    | Edit this page View Source

    StatusCode

    Upstream HTTP status code (for example 403 or 407).

    Declaration
    public int StatusCode { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    StatusDescription

    Upstream reason phrase.

    Declaration
    public string StatusDescription { get; }
    Property Value
    Type Description
    string

    Implements

    ISerializable
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX