Search Results for

    Show / Hide Table of Contents

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

    Inheritance
    object
    EventArgs
    ProxyEventArgsBase
    TunnelConnectFailureEventArgs
    Inherited Members
    ProxyEventArgsBase.ClientUserData
    EventArgs.Empty
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Titanium.Web.Proxy.EventArguments
    Assembly: Titanium.Web.Proxy.dll
    Syntax
    public class TunnelConnectFailureEventArgs : ProxyEventArgsBase

    Properties

    | Edit this page View Source

    Exception

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

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

    Session

    The CONNECT session that failed upstream connectivity verification.

    Declaration
    public TunnelConnectSessionEventArgs Session { get; }
    Property Value
    Type Description
    TunnelConnectSessionEventArgs
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX