Skip to content

httplib-rs is a wrapper around cpp-httplib.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

zTgx/httplib-rs

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

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published