http_request/request/
trait.rs

1
2
3
4
5
6
7
8
9
10
11
12
/// Trait representing an HTTP request.
///
/// Provides a method for sending an HTTP request and obtaining the result.
pub trait RequestTrait {
    /// Associated type for the result of the HTTP request.
    type RequestResult;

    /// Sends the HTTP request.
    ///
    /// - Returns: The associated type `RequestResult` which represents the outcome of the HTTP request.
    fn send(&mut self) -> Self::RequestResult;
}