Crate chrootable_https
source ·Expand description
This crate provides a chroot/sandbox friendly https client.
It doesn’t depend on any files from the filesystem which would usually cause issues if /etc/resolv.conf or ca-certificates can not be found.
Example
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);
Re-exports
pub extern crate http;
pub extern crate hyper;
pub use dns::Resolver;
pub use dns::DnsResolver;
pub use errors::*;
Modules
Structs
A stream of
Chunk
s, used when receiving bodies.Represents an HTTP request.
The URI component of a request.
Enums
The type of the resource record.