1 unstable release
Uses old Rust 2015
0.1.0 | Jan 12, 2017 |
---|
#54 in #curl
9KB
172 lines
curl-rust-easybuilder
A builder pattern for curl-rust crate
Add to your project
TODO: publish crate on Crates.io
Usage
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();
}
License
The library licensed under MIT license. See LICENSE
file for further information.
lib.rs
:
Simple builder for curl-rust Easy API.
The struct helps to create and initialize an Easy
handle with
major curl options, or to set some callback operations.
Dependencies
~11–19MB
~295K SLoC