Crate twine_http_store

Crate twine_http_store 

Source
Expand description

§twine_http_store

Crates.io Version docs.rs (with version)

This crate provides a standard way to save twine data to a remote data source through the twine HTTP api.

§A note on authorization

When using an HTTP api, different services may have different restrictions for saving data (like the need for API keys). The underlying reqwest::Client can be customized to accommodate these situations.

§Versions

There are currently two versions of the HTTP api. If you know which one you are dealing with, use the v1 or v2 modules accordingly. If you can’t predict which you will work with you can use determine_version.

§Streaming

Calls that involve streams will be batched into descrete requests for robustness.

§Examples

See the examples for example uses.

Re-exports§

pub use reqwest;

Modules§

v1
Provides an HTTP store for the version 1 HTTP api
v2
Provides an HTTP store for the version 2 HTTP api

Functions§

determine_version
Determine the version of a twine HTTP store