http_request/request/
trait.rs

1use std::fmt::Debug;
2
3/// Trait representing an HTTP request.
4///
5/// Provides a method for sending an HTTP request and obtaining the result.
6pub trait RequestTrait: Send + Debug {
7    /// Associated type for the result of the HTTP request.
8    type RequestResult: Sized;
9
10    /// Sends the HTTP request.
11    ///
12    /// - Returns: The associated type `RequestResult` which represents the outcome of the HTTP request.
13    fn send(&mut self) -> Self::RequestResult;
14}