pub fn read_request_with_policy<'a>(
socket: &impl AsFd,
storage: &'a mut [u8],
policy: RequestPolicy,
) -> Result<Request<'a>>Expand description
Apply header admission during intake and the single metadata-validation pass. An incomplete header stops at its exact byte quota without reading a byte beyond it. Field quotas are checked after that field’s syntax, before body intake/inflation and repository preparation. Failure invalidates all storage.