Docs.rs
graph-http-0.2.4
graph-http 0.2.4
Docs.rs crate page
MIT
Links
Repository
crates.io
Source
Owners
sreeise
Dependencies
async-std ^1.6.0
normal
async-stream ^0.3
normal
async-trait ^0.1.35
normal
bytes ^1
normal
futures ^0.3
normal
futures-core ^0.3
normal
futures-util ^0.3
normal
graph-core ^0.3.1
normal
graph-error ^0.1.3
normal
handlebars ^2.0.2
normal
parking_lot ^0.12.0
normal
percent-encoding ^2
normal
reqwest ^0.11
normal
serde ^1
normal
serde_json ^1
normal
serde_yaml ^0.8
normal
thiserror ^1
normal
tokio ^1
normal
url ^2
normal
Versions
Go to latest version
Platform
i686-unknown-linux-gnu
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
☰
AsyncHttpClient
Methods
build
build_upload_session
clone_inner
download
execute
new
response
upload_session
Trait Implementations
Debug
From<GraphRequest<Client, Body, Form>>
RequestClient
In graph_http
?
Type Definition
graph_http
::
AsyncHttpClient
source
·
[
−
]
pub type AsyncHttpClient =
HttpClient
<
Arc
<
Mutex
<
GraphRequest
<
Client
,
Body
,
Form
>>>>;
Implementations
§
source
§
impl
AsyncHttpClient
source
pub fn
new
(url:
GraphUrl
) ->
AsyncHttpClient
source
pub fn
clone_inner
(&self) ->
Arc
<
Mutex
<
GraphRequest
<
Client
,
Body
,
Form
>>>
source
pub async fn
download
(&self) ->
AsyncDownload
source
pub async fn
upload_session
( &self ) ->
GraphResult
<
UploadSessionClient
<
AsyncHttpClient
>>
source
pub fn
build_upload_session
(&self) -> (
Option
<
PathBuf
>,
RequestBuilder
)
source
pub fn
build
(&self) ->
RequestBuilder
source
pub async fn
response
(&self) ->
GraphResult
<
Response
>
source
pub async fn
execute
<T>(&self) ->
GraphResult
<
GraphResponse
<T>>
where for<'de> T:
Deserialize
<'de>,
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
<
()
>