pub struct HttpClient { /* private fields */ }Expand description
Asynchronous HTTP-based client for Misskey.
HttpClient can be constructed using HttpClient::new, HttpClient::with_token or
HttpClientBuilder.
Implementations§
Source§impl HttpClient
impl HttpClient
Sourcepub fn with_token(url: Url, token: impl Into<String>) -> Result<Self, Error>
pub fn with_token(url: Url, token: impl Into<String>) -> Result<Self, Error>
Creates a new HTTP-based client with a token.
Sourcepub fn builder<T>(url: T) -> HttpClientBuilder
pub fn builder<T>(url: T) -> HttpClientBuilder
Creates a new builder instance with url.
All configurations are set to default.
This function is identical to HttpClientBuilder::new.
Trait Implementations§
Source§impl Client for HttpClient
impl Client for HttpClient
Source§impl Debug for HttpClient
impl Debug for HttpClient
Source§impl UploadFileClient for HttpClient
impl UploadFileClient for HttpClient
Auto Trait Implementations§
impl Freeze for HttpClient
impl !RefUnwindSafe for HttpClient
impl Send for HttpClient
impl Sync for HttpClient
impl Unpin for HttpClient
impl !UnwindSafe for HttpClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more