[−][src]Struct graph_http::HttpClient
Implementations
impl HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>[src]
pub fn new(
url: GraphUrl
) -> HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>[src]
url: GraphUrl
) -> HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>
pub async fn download(&self) -> AsyncDownload[src]
pub async fn upload_session(
&self
) -> GraphResult<UploadSessionClient<AsyncHttpClient>>[src]
&self
) -> GraphResult<UploadSessionClient<AsyncHttpClient>>
pub async fn build_upload_session(&self) -> (Option<PathBuf>, RequestBuilder)[src]
pub async fn build(&self) -> RequestBuilder[src]
pub async fn response(&self) -> GraphResult<Response>[src]
pub async fn execute<T>(&self) -> GraphResult<GraphResponse<T>> where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
impl HttpClient<RefCell<BlockingClient>>[src]
pub fn new(url: GraphUrl) -> HttpClient<RefCell<BlockingClient>>[src]
pub fn download(&self) -> BlockingDownload[src]
pub fn upload_session(
&self
) -> GraphResult<UploadSessionClient<BlockingHttpClient>>[src]
&self
) -> GraphResult<UploadSessionClient<BlockingHttpClient>>
pub fn build_upload_session(&self) -> (Option<PathBuf>, RequestBuilder)[src]
pub fn build(&self) -> RequestBuilder[src]
pub fn response(&self) -> GraphResult<Response>[src]
pub fn execute<T>(&self) -> GraphResult<GraphResponse<T>> where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
pub fn inner_url_ref<F>(&self, f: F) where
F: Fn(&GraphUrl), [src]
F: Fn(&GraphUrl),
Trait Implementations
impl Debug for HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>[src]
impl Debug for HttpClient<RefCell<BlockingClient>>[src]
impl From<GraphRequest<Client, Body, Form>> for HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>[src]
impl From<GraphRequest<Client, Body, Form>> for HttpClient<RefCell<BlockingClient>>[src]
pub fn from(client: BlockingClient) -> Self[src]
impl RequestClient for HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>[src]
type Body = Body
type Form = Form
pub fn token(&self) -> String[src]
pub fn set_token(&self, token: &str)[src]
pub fn ident(&self) -> ResourceIdentity[src]
pub fn set_ident(&self, ident: ResourceIdentity)[src]
pub fn url(&self) -> GraphUrl[src]
pub fn to_url(&self) -> Url[src]
pub fn set_url(&self, url: GraphUrl)[src]
pub fn method(&self) -> Method[src]
pub fn set_method(&self, method: Method)[src]
pub fn set_body<T: Into<Self::Body>>(&self, body: T)[src]
pub fn set_body_with_file(&self, path: PathBuf) -> GraphResult<()>[src]
pub fn header<T: IntoHeaderName>(&self, name: T, value: HeaderValue)[src]
pub fn set_header_map(&self, header_map: HeaderMap<HeaderValue>)[src]
pub fn clear_headers(&self)[src]
pub fn set_download_dir(&self, dir: PathBuf)[src]
pub fn set_upload_session(&self, file: PathBuf)[src]
pub fn set_form(&self, form: Self::Form)[src]
pub fn set_request_type(&self, req_type: RequestType)[src]
pub fn request_type(&self) -> RequestType[src]
pub fn url_ref<F>(&self, f: F) where
F: Fn(&GraphUrl) + Sync, [src]
F: Fn(&GraphUrl) + Sync,
pub fn url_mut<F>(&self, f: F) where
F: Fn(&mut GraphUrl) + Sync, [src]
F: Fn(&mut GraphUrl) + Sync,
pub fn registry<F>(&self, f: F) where
F: Fn(&mut Handlebars) + Sync, [src]
F: Fn(&mut Handlebars) + Sync,
pub fn render_template(&self, template: &str, json: &Value) -> String[src]
pub fn register_ident_helper(&self, resource_identity: ResourceIdentity)[src]
pub fn extend_path(&self, path: &[&str])[src]
pub fn set_request(
&self,
req_att: Vec<RequestAttribute<Body, Form>>
) -> GraphResult<()>[src]
&self,
req_att: Vec<RequestAttribute<Body, Form>>
) -> GraphResult<()>
pub fn set_body_with_serialize<B: Serialize>(&self, body: &B) -> GraphResult<()>[src]
impl RequestClient for HttpClient<RefCell<BlockingClient>>[src]
type Body = Body
type Form = Form
pub fn token(&self) -> String[src]
pub fn set_token(&self, token: &str)[src]
pub fn ident(&self) -> ResourceIdentity[src]
pub fn set_ident(&self, ident: ResourceIdentity)[src]
pub fn url(&self) -> GraphUrl[src]
pub fn to_url(&self) -> Url[src]
pub fn set_url(&self, url: GraphUrl)[src]
pub fn method(&self) -> Method[src]
pub fn set_method(&self, method: Method)[src]
pub fn set_body<T: Into<Self::Body>>(&self, body: T)[src]
pub fn set_body_with_file(&self, path: PathBuf) -> GraphResult<()>[src]
pub fn header<T: IntoHeaderName>(&self, name: T, value: HeaderValue)[src]
pub fn set_header_map(&self, header_map: HeaderMap)[src]
pub fn clear_headers(&self)[src]
pub fn set_download_dir(&self, dir: PathBuf)[src]
pub fn set_upload_session(&self, file: PathBuf)[src]
pub fn set_form(&self, form: Self::Form)[src]
pub fn set_request_type(&self, req_type: RequestType)[src]
pub fn request_type(&self) -> RequestType[src]
pub fn url_ref<F>(&self, f: F) where
F: Fn(&GraphUrl) + Sync, [src]
F: Fn(&GraphUrl) + Sync,
pub fn url_mut<F>(&self, f: F) where
F: Fn(&mut GraphUrl) + Sync, [src]
F: Fn(&mut GraphUrl) + Sync,
pub fn registry<F>(&self, f: F) where
F: Fn(&mut Handlebars) + Sync, [src]
F: Fn(&mut Handlebars) + Sync,
pub fn render_template(&self, template: &str, json: &Value) -> String[src]
pub fn register_ident_helper(&self, resource_identity: ResourceIdentity)[src]
pub fn extend_path(&self, path: &[&str])[src]
pub fn set_request(
&self,
req_att: Vec<RequestAttribute<Body, Form>>
) -> GraphResult<()>[src]
&self,
req_att: Vec<RequestAttribute<Body, Form>>
) -> GraphResult<()>
pub fn set_body_with_serialize<B: Serialize>(&self, body: &B) -> GraphResult<()>[src]
Auto Trait Implementations
impl<Client> RefUnwindSafe for HttpClient<Client> where
Client: RefUnwindSafe, [src]
Client: RefUnwindSafe,
impl<Client> Send for HttpClient<Client> where
Client: Send, [src]
Client: Send,
impl<Client> Sync for HttpClient<Client> where
Client: Sync, [src]
Client: Sync,
impl<Client> Unpin for HttpClient<Client> where
Client: Unpin, [src]
Client: Unpin,
impl<Client> UnwindSafe for HttpClient<Client> where
Client: UnwindSafe, [src]
Client: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,