From 02708b86f50e5cbd0cbaa10b751234140896dce2 Mon Sep 17 00:00:00 2001 From: "Stephen M. Coakley" Date: Sat, 15 Sep 2018 00:32:36 -0500 Subject: [PATCH] Prepare 0.2.1 release --- CHANGELOG.md | 5 +++++ Cargo.toml | 5 +++-- README.md | 15 ++------------- 3 files changed, 10 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 284648a9..441b7993 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.2.1 - 2018-09-15 + +- Enable HTTP/2 support. +- Apply a workaround for a potential bug in libcurl concerning timeouts in the agent event loop. + ## 0.2.0 - 2018-09-12 - Refactor the internals of cHTTP to be "closer to the metal", with a single curl multi handle running in a background thread per client that multiplexes all requests. This improves connection pooling and reduces memory usage, and has only minimal public API changes. This also opens the door to providing an async API in the future. (#5) diff --git a/Cargo.toml b/Cargo.toml index 6a4f16bb..db19a73c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,12 @@ [package] name = "chttp" -version = "0.2.0" +version = "0.2.1" description = "The practical HTTP client that is fun to use." authors = ["Stephen M. Coakley "] license = "MIT" keywords = ["http", "request", "client"] categories = ["web-programming::http-client"] +readme = "README.md" repository = "https://github.com/sagebind/chttp" [features] @@ -14,7 +15,7 @@ default = [] [dependencies] bytes = "0.4" crossbeam-channel = "0.2" -futures-preview = "0.2" +futures-preview = "0.2.2" http = "0.1" lazy_static = "1" lazycell = "1.0" diff --git a/README.md b/README.md index f7da03f6..0654af82 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,9 @@ The practical HTTP client that is fun to use. cHTTP provides a clean and easy-to-use interface around the venerable [libcurl]. Here are some of the features that are currently available: -- HTTP/2 support (if libcurl is compiled with it). +- HTTP/2 support. - Connection pooling and reuse. -- Respone body streaming. +- Response body streaming. - Request body uploading from memory or a stream. - Tweakable redirect policy. - TCP socket configuration. @@ -56,17 +56,6 @@ let body = response.body_mut().text().unwrap(); println!("{}", body); ``` -## Requirements - -On Linux: - -- libcurl 7.24.0 or newer -- OpenSSL 1.0.1, 1.0.2, 1.1.0, or LibreSSL - -On Windows and macOS: - -- TBD - ## Installation Add this to your Cargo.toml file: