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.
- Host: GitHub
- URL: https://github.com/ztgx/httplib-rs
- Owner: zTgx
- License: apache-2.0
- Created: 2019-08-13T10:01:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-18T16:01:49.000Z (over 6 years ago)
- Last Synced: 2025-01-13T14:45:12.290Z (over 1 year ago)
- Topics: cxx, ffi, http, httplib, rust
- Language: Rust
- Homepage:
- Size: 42 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# [httplib-rs](https://github.com/zTgx/httplib-rs.git) [](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);
}
```