Type Definition graph_http::AsyncHttpClient

source ·
pub type AsyncHttpClient = HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>;

Implementations§

Trait Implementations§

source§

impl Debug for AsyncHttpClient

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<GraphRequest<Client, Body, Form>> for AsyncHttpClient

source§

fn from(client: GraphRequest<Client, Body, Form>) -> Self

Converts to this type from the input type.
source§

impl RequestClient for AsyncHttpClient

§

type Body = Body

§

type Form = Form

source§

fn token(&self) -> String

source§

fn set_token(&self, token: &str)

source§

fn ident(&self) -> ResourceIdentity

source§

fn set_ident(&self, ident: ResourceIdentity)

source§

fn url(&self) -> GraphUrl

source§

fn to_url(&self) -> Url

source§

fn set_url(&self, url: GraphUrl)

source§

fn method(&self) -> Method

source§

fn set_method(&self, method: Method)

source§

fn set_body<T: Into<Body>>(&self, body: T)

source§

fn set_body_with_file(&self, path: PathBuf) -> GraphResult<()>

source§

fn header<T: IntoHeaderName>(&self, name: T, value: HeaderValue)

source§

fn set_header_map(&self, header_map: HeaderMap)

source§

fn clear_headers(&self)

source§

fn set_download_dir(&self, dir: PathBuf)

source§

fn set_upload_session(&self, file: PathBuf)

source§

fn set_form(&self, form: Form)

source§

fn set_request_type(&self, req_type: RequestType)

source§

fn request_type(&self) -> RequestType

source§

fn url_ref<F>(&self, f: F)where F: Fn(&GraphUrl) + Sync,

source§

fn url_mut<F>(&self, f: F)where F: Fn(&mut GraphUrl) + Sync,

source§

fn registry<F>(&self, f: F)where F: Fn(&mut Handlebars) + Sync,

source§

fn render_template(&self, template: &str, json: &Value) -> String

source§

fn register_ident_helper(&self, resource_identity: ResourceIdentity)

source§

fn extend_path(&self, path: &[&str])

source§

fn set_request( &self, req_att: Vec<RequestAttribute<Body, Form>> ) -> GraphResult<()>

source§

fn set_timeout(&self, duration: Duration)

source§

fn set_body_with_serialize<B: Serialize>(&self, body: &B) -> GraphResult<()>