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 a non-forgeable current-generation browser-bridge authorization from hns-dane-engine before an exact-host tunnel grant can be issued. Socket accept loops, 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-origin DANE authorization.
ProxyAuthorization
Per-instance loopback proxy capability.
ProxyConfig
One proxy instance configuration.
ProxyLimits
Deterministic proxy resource bounds.
ProxySession
Platform-neutral authenticated proxy admission state.
TunnelGrant
Exact-host backend permission issued after engine DANE authorization.

Enums§

ProxyError
Proxy configuration, request, runtime, or bridge failure.

Constants§

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.
PROXY_AUTHENTICATE_HEADER
HTTP proxy authentication challenge header.
PROXY_AUTHORIZATION_HEADER
HTTP proxy authorization header.