Skip to main content

Crate hns_loopback_proxy

Crate hns_loopback_proxy 

Source
Expand description

Authenticated exact-origin loopback proxy admission.

This crate owns the platform-neutral boundary in front of a native browser proxy. It admits only strict loopback CONNECT requests carrying one per-instance Basic capability, then requires an atomically published, current-generation hns_dane_engine::ProviderAuthorityContext before an exact-origin tunnel grant can be issued. Socket accept loops, DNS wire I/O, origin dialing, local CA storage, and TLS I/O remain native-host adapter responsibilities.

Structs§

HostScope
Immutable HNS TLD scope.
LoopbackEndpoint
Numeric loopback endpoint; hostnames and wildcard binds are impossible.
NormalizedHost
Strict lowercase ASCII DNS host.
PendingConnect
Opaque authenticated CONNECT awaiting exact provider-authority admission.
ProxyAuthorization
Per-instance loopback proxy capability.
ProxyConfig
One proxy instance configuration.
ProxyInstanceIdentity
Native-process and listener lifecycle identity for replay isolation.
ProxyLimits
Deterministic proxy resource bounds.
ProxySession
Platform-neutral authenticated proxy admission state.
PublishedAdmission
Opaque handle to one atomically published provider authority.
TunnelGrant
Short-lived, single-CONNECT exact-origin permission.

Enums§

ProxyError
Proxy configuration, request, runtime, or provider-publication failure.

Constants§

DEFAULT_MAXIMUM_GRANT_LIFETIME_SECONDS
Default maximum lifetime of one issued tunnel grant, in seconds.
DEFAULT_MAXIMUM_HEADERS
Default maximum header fields.
DEFAULT_MAXIMUM_HEAD_BYTES
Default maximum CONNECT head bytes.
DEFAULT_MAXIMUM_PENDING
Default maximum simultaneous pending CONNECT admissions.
DEFAULT_MAXIMUM_PENDING_LIFETIME_SECONDS
Default lifetime of one pending CONNECT admission, in seconds.
DEFAULT_MAXIMUM_PUBLICATIONS
Default maximum simultaneously published provider authorities.
DEFAULT_MAXIMUM_PUBLICATION_LIFETIME_SECONDS
Default maximum lifetime of one in-memory publication, in seconds.
MAXIMUM_GRANT_LIFETIME_SECONDS
Hard maximum lifetime of one issued tunnel grant, in seconds.
MAXIMUM_PENDING_LIFETIME_SECONDS
Hard maximum lifetime of one pending CONNECT admission, in seconds.
PROXY_AUTHENTICATE_HEADER
HTTP proxy authentication challenge header.
PROXY_AUTHORIZATION_HEADER
HTTP proxy authorization header.