A builder pattern for curl-rust crate
[dependencies]
curl-easybuilder = "0.1"
extern crate curl_easybuilder;
use std::io::{stdout, Write};
use curl_easybuilder::EasyBuilder;
fn main() {
let mut easy = EasyBuilder::new();
let easy = easy.url("https://www.rust-lang.org/")
.write_function(|data| Ok(stdout().write(data).unwrap()))
.result()
.unwrap();
easy.perform().unwrap();
}
The library licensed under MIT license. See LICENSE
file for further information.