/*******************************************************************************
*
* Copyright (c) 2025 - 2026 Haixing Hu.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0.
*
******************************************************************************/
//! Request-level timeout validation helpers.
use Duration;
use crate::;
/// Validates a request-level timeout duration.
///
/// # Parameters
/// - `name`: Public option or method name used in diagnostics.
/// - `timeout`: Duration to validate.
///
/// # Returns
/// `Ok(())` when `timeout` is greater than zero.
///
/// # Errors
/// Returns [`HttpError`] when `timeout` is zero.
pub