From 2b6e38a7954ada0c924aa6eed21256d72097a8b9 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Wed, 17 Jan 2024 14:58:34 +0100 Subject: [PATCH] Release 0.4.0 - HEAD and duplicated headers --- CHANGELOG.md | 10 ++++++++++ Cargo.lock | 2 +- ehttp/Cargo.toml | 2 +- ehttp/src/types.rs | 4 ++-- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a63f4b..3adfb2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,15 +5,25 @@ All notable changes to the `ehttp` crate will be documented in this file. ## Unreleased + +## 0.4.0 - 2024-01-17 +* Allow duplicated headers in requests and responses ([#46](https://github.com/emilk/ehttp/pull/46)) +* Support HEAD requests ([#45](https://github.com/emilk/ehttp/pull/45)) +* Add missing web-sys feature ([#42](https://github.com/emilk/ehttp/pull/42)) +* Update MSRV to 1.72.0 ([#44](https://github.com/emilk/ehttp/pull/44)) + + ## 0.3.1 - 2023-09-27 * Improve opaque network error message on web ([#33](https://github.com/emilk/ehttp/pull/33)). + ## 0.3.0 - 2023-06-15 * Add `ehttp::streaming`, for streaming HTTP requests ([#28](https://github.com/emilk/ehttp/pull/28)). * Add cross-platform `fetch_async` ([#25](https://github.com/emilk/ehttp/pull/25)). * Nicer formatted error messages on web. * Implement `Clone` and `Debug` for `Request` ([#17](https://github.com/emilk/ehttp/pull/17)). + ## 0.2.0 - 2022-01-15 * `Response::text` and `Response::content_type` no longer allocates. * Rename `ehttp::Request::create_headers_map` to `ehttp::headers`. diff --git a/Cargo.lock b/Cargo.lock index 7427110..0a57f52 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -843,7 +843,7 @@ dependencies = [ [[package]] name = "ehttp" -version = "0.3.1" +version = "0.4.0" dependencies = [ "async-channel", "document-features", diff --git a/ehttp/Cargo.toml b/ehttp/Cargo.toml index 9721837..ad48067 100644 --- a/ehttp/Cargo.toml +++ b/ehttp/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ehttp" -version = "0.3.1" +version = "0.4.0" authors = ["Emil Ernerfeldt "] description = "Minimal HTTP client for both native and WASM" edition = "2018" diff --git a/ehttp/src/types.rs b/ehttp/src/types.rs index 68f49db..63ad677 100644 --- a/ehttp/src/types.rs +++ b/ehttp/src/types.rs @@ -37,7 +37,7 @@ impl Headers { /// Get the value of the first header with the given key. /// - /// The lookup is case-insentive. + /// The lookup is case-insensitive. pub fn get(&self, key: &str) -> Option<&str> { let key = key.to_string().to_lowercase(); self.headers @@ -48,7 +48,7 @@ impl Headers { /// Get all the values that match the given key. /// - /// The lookup is case-insentive. + /// The lookup is case-insensitive. pub fn get_all(&self, key: &str) -> impl Iterator { let key = key.to_string().to_lowercase(); self.headers