8 releases

0.3.0 Jul 11, 2019
0.2.1 Jul 3, 2019
0.2.0 Mar 16, 2018
0.1.4 Jan 30, 2018
0.1.0 May 29, 2017

#75 in HTTP client

Download history 109/week @ 2019-06-25 46/week @ 2019-07-02 53/week @ 2019-07-09 13/week @ 2019-07-16 9/week @ 2019-07-23 16/week @ 2019-07-30 18/week @ 2019-08-06 4/week @ 2019-08-13 24/week @ 2019-08-20 38/week @ 2019-08-27 31/week @ 2019-09-03 26/week @ 2019-09-10 75/week @ 2019-09-17 28/week @ 2019-09-24 11/week @ 2019-10-01

102 downloads per month
Used in 3 crates (2 directly)

BSD-3-Clause

66KB
1.5K SLoC

cabot

Build Status Current Crates.io Version dependency status Latests Documentation

Cabot is a simple Rust library to perform HTTP call.

Take a look at the documentation for usage.

Unlike known alternatives, cabot does not rely on OpenSSL to perform https, but use rustls instead.

Cabot is also a command line tool ala curl: cabot <url>

Use -h for more options

License

BSD 3-Clause License

Known Alternatives


lib.rs:

cabot

cabot is a command line tool and a rust library for sending HTTP query. It is a simple implementation of HTTP based on the rust standard library to perform TCP and DNS query, and use rustls for handling HTTPS connection. No tiers library are used for HTTP protocol.

cabot is inspired by the cURL command line tool, but focus on the http protocol which is the referent in HTTP client library.

Examples:

Command Line:

$ cargo run -- https://www.rust-lang.org/ 2>&1| head -n 20 | grep 'name="description"'
    <meta name="description" content="A language empowering everyone to build reliable and efficient software.">

Library:

use cabot::{RequestBuilder, Client};

let request = RequestBuilder::new("https://www.rust-lang.org/")
    .build()
    .unwrap();
let client = Client::new();
let response = client.execute(&request).unwrap();
assert!(response.body_as_string().unwrap().contains("Rust is blazingly fast and memory-efficient"));

Why cabot ?

To get a simple rust native https client. No binding to OpenSSL.

License

BSD 3-Clause License

Dependencies

~12MB
~303K SLoC