Struct HttpInterceptionContext
Minimal, read-only context passed to ShouldInterceptHttp to let callers route requests to the fast-forward path or the full interception path without materialising a SessionEventArgs.
Inherited Members
Namespace: Titanium.Web.Proxy.Models
Assembly: Titanium.Web.Proxy.dll
Syntax
public readonly struct HttpInterceptionContext
Properties
| Edit this page View SourceClientProcessId
Process ID of the local client (explicit proxy / Windows only; null otherwise).
Declaration
public int? ClientProcessId { get; init; }
Property Value
| Type | Description |
|---|---|
| int? |
ClientRemoteEndPoint
Remote IP endpoint of the connected client (null when unavailable).
Declaration
public IPEndPoint? ClientRemoteEndPoint { get; init; }
Property Value
| Type | Description |
|---|---|
| IPEndPoint |
Hostname
Target hostname (from Host / :authority), no port, no userinfo.
Declaration
public string Hostname { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
HttpVersion
HTTP version (1.1 / 2.0 / 3.0).
Declaration
public Version HttpVersion { get; init; }
Property Value
| Type | Description |
|---|---|
| Version |
IsHttps
True when the connection is over TLS.
Declaration
public bool IsHttps { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
Method
HTTP method (GET, POST, CONNECT, …).
Declaration
public string Method { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
PathAndQuery
Path and query only (no scheme/authority).
Declaration
public string PathAndQuery { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Port
Target port (80, 443, or explicit).
Declaration
public int Port { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
ProxyEndPoint
The proxy endpoint that accepted this connection.
Declaration
public ProxyEndPoint ProxyEndPoint { get; init; }
Property Value
| Type | Description |
|---|---|
| ProxyEndPoint |