| Crates.io | chrootable-https |
| lib.rs | chrootable-https |
| version | 0.16.0 |
| created_at | 2018-09-15 03:22:26.16685+00 |
| updated_at | 2020-09-25 17:49:37.459769+00 |
| description | Sandbox friendly https client |
| homepage | |
| repository | https://github.com/kpcyrd/chrootable-https |
| max_upload_size | |
| id | 84795 |
| size | 138,494 |
If you ever tried chrooting an https client into an empty folder you probably ran into two problems:
This crate is working around those issues by using:
We're also trying to avoid C dependencies and stick to safe rust as much as possible.
extern crate chrootable_https;
use chrootable_https::{Resolver, Client};
let resolver = Resolver::cloudflare();
let client = Client::new(resolver);
let reply = client.get("https://httpbin.org/anything").expect("request failed");
println!("{:#?}", reply);
LGPL-3+