RequestTrait

Trait RequestTrait 

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

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

Synchronous HTTP request trait.

Defines the interface for sending synchronous HTTP requests.

Required Associated Types§

Source

type RequestResult: Sized

The result type of the synchronous request.

Required Methods§

Source

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

Sends the HTTP request synchronously.

§Returns
  • Self::RequestResult - The result of the synchronous request.

Implementors§