Trait RequestTrait

Source
pub trait RequestTrait: Send + Debug {
    type RequestResult: Sized;

    // Required method
    fn send(&mut self) -> Self::RequestResult;
}
Expand description

Trait representing an HTTP request.

Provides a method for sending an HTTP request and obtaining the result.

Required Associated Types§

Source

type RequestResult: Sized

Associated type for the result of the HTTP request.

Required Methods§

Source

fn send(&mut self) -> Self::RequestResult

Sends the HTTP request.

  • Returns: The associated type RequestResult which represents the outcome of the HTTP request.

Implementors§