Trait bililive_core::builder::Requester[][src]

pub trait Requester {
    fn get_json<T: DeserializeOwned>(
        &self,
        url: &str
    ) -> Pin<Box<dyn Future<Output = Result<T, Box<dyn Error>>>>>; }
Expand description

An abstract HTTP client.

Used in ConfigBuilder to help fetching bilibili config.

Required methods

Make a GET request to the url and try to deserialize the response body as JSON.

Implementors