Trait bililive_core::builder::Requester [−][src]
pub trait Requester {
fn get_json<'life0, 'life1, 'async_trait, T: DeserializeOwned>(
&'life0 self,
url: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<T, Box<dyn Error>>> + 'async_trait>>
where
T: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}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.