Skip to content

Commit b4dbad6

Browse files
hamzamuricseanmonstar
authored andcommitted
docs(changelog): fix mention of stream feature to unstable-stream (#1968)
1 parent 0ef12a1 commit b4dbad6

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

CHANGELOG.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
* **body:**
2828
* identify aborted body write errors ([dc54ee19](https://github.com/hyperium/hyper/commit/dc54ee199f2d19d65913d224b900a61ab3bf2415))
29-
* put `Stream` impl for `Body` behind `stream` feature ([511ea388](https://github.com/hyperium/hyper/commit/511ea3889b5cceccb3a42aa72465fe38adef71a4))
29+
* put `Stream` impl for `Body` behind `unstable-stream` feature ([511ea388](https://github.com/hyperium/hyper/commit/511ea3889b5cceccb3a42aa72465fe38adef71a4))
3030
* **server:** introduce `Accept` trait ([b3e55062](https://github.com/hyperium/hyper/commit/b3e5506261c33dcaca39a126e891a0b9d5df5eea))
3131

3232

@@ -574,23 +574,23 @@
574574
* The variants of `StatusCode` are now uppercase, for instance, `StatusCode::Ok` is now `StatusCode::OK`.
575575
* The variants of `Version` are now uppercase, for instance, `HttpVersion::Http11` is now `Version::HTTP_11`.
576576
* The typed headers from `hyper::header` are gone for now.
577-
577+
578578
The `http::header` module is re-exported as `hyper::header`.
579-
579+
580580
For example, a before setting the content-length:
581-
581+
582582
```rust
583583
use hyper::header::ContentLength;
584584
res.headers_mut().set(ContentLength(15));
585585
```
586-
586+
587587
And now **after**, with the `http` types:
588-
588+
589589
```rust
590590
use hyper::header::{CONTENT_LENGTH, HeaderValue};
591591
res.headers_mut().insert(CONTENT_LENGTH, HeaderValue::from_static("15"));
592592
```
593-
593+
594594
([3cd48b45](https://github.com/hyperium/hyper/commit/3cd48b45fb622fb9e69ba773e7f92b9d3e9ac018))
595595
* The `mime` crate is no longer re-exported as `hyper::mime`.
596596

@@ -2472,4 +2472,3 @@ tag is now in a tuple.
24722472
* **headers:**
24732473
* fix fmt_header outputs of several headers ([aa266653](https://github.com/hyperium/hyper/commit/aa26665367bde895ce02ad2a8e1a372f00719852), closes [#246](https://github.com/hyperium/hyper/issues/246))
24742474
* don't use Show to write UserAgent header ([c8e334aa](https://github.com/hyperium/hyper/commit/c8e334aaebb5522a86d47f7e3c33836d2061cb65))
2475-

0 commit comments

Comments
 (0)