Skip to content

lettenj61/curl-rust-easybuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

curl-rust-easybuilder

A builder pattern for curl-rust crate

Crates.io Build Status

Documentation

docs.rs

Usage

[dependencies]
curl-easybuilder = "0.1"

Example

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.

Packages

No packages published

Languages