Skip to main content

Module websocket_review

Module websocket_review 

Source
Expand description

Strict, transport-neutral policy for bounded WebSocket review.

Parsing validates an operator-authored declaration against an already selected application target. It does not open a socket, verify either operator assertion, grant broader target authority, or turn an expected response into observed evidence. Raw endpoints, subprotocols, message IDs, message text, and expected-response digests remain private to the crate-owned execution boundary. Message IDs are operator-declared, non-secret revision handles: the operator must change an ID when the corresponding outbound or expected-response semantics change. Public references never hash the message or expected-response bytes.

Structs§

WebSocketReviewLimits
Validated finite runtime ceilings from one policy.
WebSocketReviewMessageRef
Safe borrowed metadata for one ordered message declaration.
WebSocketReviewPolicy
Strict, bounded declaration for one isolated WebSocket connection.

Enums§

WebSocketOriginMode
Origin-header behavior selected by a validated V1 policy.
WebSocketReviewPolicyError
Static, value-free policy parsing or validation failure.

Constants§

MAX_WEBSOCKET_REVIEW_CONTROL_FRAMES
Maximum control frames admitted across the isolated connection.
MAX_WEBSOCKET_REVIEW_DIRECTION_BYTES
Maximum cumulative application-message bytes in either direction.
MAX_WEBSOCKET_REVIEW_MESSAGES
Maximum number of ordered outbound message declarations.
MAX_WEBSOCKET_REVIEW_MESSAGE_BYTES
Compatibility name for the hard per-direction application-byte ceiling.
MAX_WEBSOCKET_REVIEW_MESSAGE_ID_BYTES
Maximum bytes in one safe message identifier.
MAX_WEBSOCKET_REVIEW_MESSAGE_TEXT_BYTES
Maximum UTF-8 bytes in one declared outbound text message.
MAX_WEBSOCKET_REVIEW_POLICY_BYTES
Maximum accepted exact JSON policy bytes.
MAX_WEBSOCKET_REVIEW_SUBPROTOCOL_BYTES
Maximum bytes in the optional WebSocket subprotocol token.
MAX_WEBSOCKET_REVIEW_TOTAL_INBOUND_BYTES
Compatibility name for the cumulative expected inbound-payload ceiling.
MAX_WEBSOCKET_REVIEW_TOTAL_OUTBOUND_BYTES
Compatibility name for the cumulative declared outbound-text ceiling.
MAX_WEBSOCKET_REVIEW_WALL_TIME_MS
Maximum wall-clock duration of one isolated review.
WEBSOCKET_REVIEW_POLICY_ALGORITHM
Stable interpretation and reference algorithm applied to the V1 schema.
WEBSOCKET_REVIEW_POLICY_SCHEMA
The only WebSocket review policy schema accepted by this module.