praxis-proxy-filter 0.4.0

Filter pipeline engine and built-in filters for Praxis
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: MIT
// Copyright (c) 2026 Praxis Contributors

//! Shared body-size defaults for built-in filters.

// -----------------------------------------------------------------------------
// Body Size Constants
// -----------------------------------------------------------------------------

/// Default maximum body size for generic JSON request-body inspection (10 MiB).
pub const DEFAULT_JSON_BODY_MAX_BYTES: usize = 10_485_760; // 10 MiB

/// Hard ceiling for JSON body inspection buffers (64 MiB).
pub const MAX_JSON_BODY_BYTES: usize = 67_108_864; // 64 MiB