Skip to content

Commit

Permalink
Release 0.4.0 - HEAD and duplicated headers
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jan 17, 2024
1 parent fada1a2 commit 2b6e38a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ehttp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ehttp"
version = "0.3.1"
version = "0.4.0"
authors = ["Emil Ernerfeldt <[email protected]>"]
description = "Minimal HTTP client for both native and WASM"
edition = "2018"
Expand Down
4 changes: 2 additions & 2 deletions ehttp/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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<Item = &str> {
let key = key.to_string().to_lowercase();
self.headers
Expand Down

0 comments on commit 2b6e38a

Please sign in to comment.