Expand description
hyperlane-plugin-body-limit
Zero-allocation granular request payload size enforcement for Hyperlane
supporting global limits, per-prefix overrides, per-MIME caps, and
prebuilt 413 Payload Too Large wire responses.
Structs§
- Body
Limit Config - User-facing configuration for
BodyLimitPlugin. - Body
Limit Hook - Opt-in request middleware enforcing global, per-prefix, and per-MIME body size caps.
- Body
Limit Plugin - Precompiled zero-allocation request body size guard backing
BodyLimitHook. - Mime
Body Limit - Per-MIME-type request body limit override rule.
- Prefix
Body Limit - Per-prefix request body limit override rule.
Enums§
- Body
Limit Decision - Evaluation result returned by [
BodyLimitPlugin::evaluate].
Constants§
- DEFAULT_
MAX_ BODY_ BYTES - Default global request body size cap (
1 MiB). - DEFAULT_
REJECT_ BODY - Default JSON body emitted for
413 Payload Too Largerejections. - DEFAULT_
REJECT_ CONTENT_ TYPE - Default
Content-Typeemitted for413 Payload Too Largerejections.