Struct graph_http::HttpClient
source · pub struct HttpClient<Client> { /* private fields */ }
Implementations§
source§impl HttpClient<Arc<Mutex<RawMutex, GraphRequest<Client, Body, Form>>>>
impl HttpClient<Arc<Mutex<RawMutex, GraphRequest<Client, Body, Form>>>>
pub fn new(url: GraphUrl) -> AsyncHttpClient
pub fn clone_inner(&self) -> Arc<Mutex<GraphRequest<Client, Body, Form>>>
pub async fn download(&self) -> AsyncDownload
pub async fn upload_session( &self ) -> GraphResult<UploadSessionClient<AsyncHttpClient>>
pub fn build_upload_session(&self) -> (Option<PathBuf>, RequestBuilder)
pub fn build(&self) -> RequestBuilder
pub async fn response(&self) -> GraphResult<Response>
pub async fn execute<T>(&self) -> GraphResult<GraphResponse<T>>where for<'de> T: Deserialize<'de>,
source§impl HttpClient<RefCell<BlockingClient>>
impl HttpClient<RefCell<BlockingClient>>
pub fn new(url: GraphUrl) -> HttpClient<RefCell<BlockingClient>>
pub fn download(&self) -> BlockingDownload
pub fn upload_session( &self ) -> GraphResult<UploadSessionClient<BlockingHttpClient>>
pub fn build_upload_session(&self) -> (Option<PathBuf>, RequestBuilder)
pub fn build(&self) -> RequestBuilder
pub fn response(&self) -> GraphResult<Response>
pub fn execute<T>(&self) -> GraphResult<GraphResponse<T>>where for<'de> T: Deserialize<'de>,
pub fn inner_url_ref<F>(&self, f: F)where F: Fn(&GraphUrl),
Trait Implementations§
source§impl Debug for HttpClient<RefCell<BlockingClient>>
impl Debug for HttpClient<RefCell<BlockingClient>>
source§impl From<GraphRequest<Client, Body, Form>> for HttpClient<RefCell<BlockingClient>>
impl From<GraphRequest<Client, Body, Form>> for HttpClient<RefCell<BlockingClient>>
source§fn from(client: BlockingClient) -> Self
fn from(client: BlockingClient) -> Self
Converts to this type from the input type.