Skip to content

About

httplib-rs is a wrapper around cpp-httplib.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

22 Commits

Folders and files

Repository files navigation

A wrapper around cpp-httplib, a C++ library by yhirose for HTTP/HTTPS.

Usage

Add dependencies

[dependencies]
httplib = "0.1.0"
extern crate httplib;
use httplib::*;

fn main() {
    let mut client = Client::with_host_port_timeout("localhost".to_string(), 9001, 3200);
    let x = client.get_with_path(&"/".to_string());

    println!("body: \n{}", x);
}

About

httplib-rs is a wrapper around cpp-httplib.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages