Skip to main content

Module types

Module types 

Source
Expand description

The canonical shared vocabulary.

Every type named here has exactly ONE definition and ONE home. This module exists because eleven module designs were produced in parallel against a drifting vocabulary and invented thirteen names for five concepts (Proto/ProxyType/NegotiatorKind, ProxyError/ProxyFailure, AnonLevel/Anonymity, Stream×2, JudgePool×2, Scheme×2, JudgeScheme×2). See docs/systematic-refactor/map.md §Critique.

Rule: if a type is used by more than one module, it is defined here or re-exported from here. No module invents a local spelling of a shared concept.

Structs§

Caps
A proxy’s capability profile (A4): which of our test-request headers it forwarded to the judge unmodified. CONNECT:25 support is derived from the confirmed types, not stored here.
ParseProtoError
Python raises a bare KeyError from NGTRS[proto]; this makes the failure typed.
TypeSpec
One requested protocol, optionally narrowed to specific anonymity levels.

Enums§

AnonLevel
How much the proxy reveals about the client. Ordered worst → best, so level >= AnonLevel::Anonymous is a meaningful filter.
JudgeScheme
Judge flavour. SMTP judges validate CONNECT:25 and are probed differently.
Proto
A proxy protocol. The closed set of six, matching Python’s NGTRS dict keys.
Scheme
Transport scheme for a request through a proxy.