pub trait RequestBuilderExt {
    fn send_checked(self) -> Result<Response>;

    fn commit(self) -> Result<()>
    where
        Self: Sized
, { ... } fn receive_json<T: DeserializeOwned>(self) -> Result<T>
    where
        Self: Sized
, { ... } }
Expand description

Extension trait for HTTP calls with error handling.

Required Methods

Send a request and validate the status code.

Provided Methods

Send a request and discard the results.

Send a request and receive a JSON back.

Implementations on Foreign Types

Implementors