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_ERROR_RESPONSE_PREVIEW_LIMIT_BYTES
Default maximum bytes included in non-success response body previews on crate::HttpError.
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_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.