An open API service indexing awesome lists of open source software.

https://github.com/ztgx/httplib-rs

httplib-rs is a wrapper around cpp-httplib.
https://github.com/ztgx/httplib-rs

cxx ffi http httplib rust

Last synced: about 1 year ago
JSON representation

httplib-rs is a wrapper around cpp-httplib.

Awesome Lists containing this project

README

          

# [httplib-rs](https://github.com/zTgx/httplib-rs.git) [![Build Status](https://travis-ci.org/zTgx/httplib-rs.svg?branch=master)](https://travis-ci.org/zTgx/httplib-rs)

A wrapper around [cpp-httplib](https://github.com/yhirose/cpp-httplib.git), a C++ library by yhirose for HTTP/HTTPS.

# Usage
Add dependencies
```
[dependencies]
httplib = "0.1.0"
```

```rust
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);
}
```