Skip to main content

Module constants

Module constants 

Source
Expand description

Crate-wide defaults and fixed tuning values for HTTP client behavior and logging.

Constantsยง

DEFAULT_CONNECT_TIMEOUT_SECS
Default connect timeout in seconds.
DEFAULT_LOG_BODY_SIZE_LIMIT_BYTES
Default maximum body bytes included in TRACE log previews.
DEFAULT_READ_TIMEOUT_SECS
Default read timeout in seconds.
DEFAULT_SENSITIVE_HEADER_NAMES
Built-in header names preloaded into crate::SensitiveHeaders::default for log masking.
DEFAULT_SSE_MAX_FRAME_BYTES
Default maximum bytes allowed for one SSE frame (between blank lines) before raising a protocol error.
DEFAULT_SSE_MAX_LINE_BYTES
Default maximum bytes allowed for a single SSE line before raising a protocol error.
DEFAULT_WRITE_TIMEOUT_SECS
Default write timeout in seconds.
SENSITIVE_HEADER_MASK_EDGE_CHARS
How many characters to keep visible at the start and end when masking longer values.
SENSITIVE_HEADER_MASK_PLACEHOLDER
Replacement string for fully masked or middle segments of sensitive header values.
SENSITIVE_HEADER_MASK_SHORT_LEN
Values with at most this many characters are fully replaced by SENSITIVE_HEADER_MASK_PLACEHOLDER.