backblaze-b2

Crates.iobackblaze-b2
lib.rsbackblaze-b2
version0.1.9-2
sourcesrc
created_at2017-05-26 15:30:25.822545
updated_at2017-08-02 14:52:22.704919
descriptionCan send api requests to the backblaze b2 api.
homepagehttps://ryhl.io/backblaze.html
repositoryhttps://github.com/Darksonn/backblaze-b2-rs
max_upload_size
id16388
size106,398
Alice Ryhl (Darksonn)

documentation

README

backblaze-b2-rs

Rust library for using the backblaze b2 api. See here for more information. See here for documentation.

The backblaze api requires https, so you need to provide a Client with a https connector. Such a client can be created with the api call below:

extern crate hyper;
extern crate hyper_native_tls;
use hyper::Client;
use hyper::net::HttpsConnector;
use hyper_native_tls::NativeTlsClient;

let ssl = NativeTlsClient::new().unwrap();
let connector = HttpsConnector::new(ssl);
let client = Client::with_connector(connector);

Unfortunately because of the hyper api design, the upload functionality in this library requires the connector instead of the client, and since the client consumes the connector, you'll have to make two of them.

Commit count: 41

cargo fmt