Module default_client

Source
Available on crate feature default_client only.
Expand description

The default HTTP client.

Use this client if you’re not particularly picky about implementation details, as the specific implementation is not exposed, and may be changed in the future.

If you have a need for a specific HTTP client implementation, or your program is already using some HTTP client crate, you probably want to have this Dropbox SDK crate use it as well. To do that, you should implement the traits in crate::client_trait for it and use it instead.

This code (and its dependencies) are only built if you use the default_client Cargo feature.

Structs§

AppAuthDefaultClient
Default HTTP client using App authorization.
NoauthDefaultClient
Default HTTP client for unauthenticated API calls.
RequestError
Something went wrong making the request, or the server returned a response we didn’t expect. Use the Display or Debug impls to see more details. Note that this type is intentionally vague about the details beyond these string representations, to allow implementation changes in the future.
TeamAuthDefaultClient
Default HTTP client using Team authorization.
UreqRequest
This is an implementation detail of the HTTP client.
UserAuthDefaultClient
Default HTTP client using User authorization.

Enums§

DefaultClientError
Errors from the HTTP client encountered in the course of making a request.