Skip to main content

detect_service_headers_only

Function detect_service_headers_only 

Source
pub fn detect_service_headers_only(
    headers: &HeaderMap,
    query_params: &HashMap<String, String>,
) -> Option<DetectedRequest>
Expand description

Header-only service detection. Skips the form-encoded body sniff so the dispatch path can decide whether to stream or buffer the body without first reading it. Returns None when only a body sniff would succeed; the caller must then fall back to detect_service after buffering. Used to opt streaming routes (S3 PutObject / UploadPart, ECR OCI v2 blob upload) out of the global body cap.