Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
fa3a4b2
chore(lib): old commented code cleanup (#4151)
dswij Aug 10, 2026
3534d75
fix(http1): recognize `\n\r\n` as a head terminator in the partial-re…
nam2ee Aug 10, 2026
af432e9
docs(body): add streaming read examples (#4148)
fzlzjerry Aug 10, 2026
72fcf54
fix(http1): detect TE: trailers caselessly and with other values (#4152)
seanmonstar Aug 11, 2026
fca07bd
style(lib): fix missing_errors_doc lint (#4154)
CinisBorn Aug 12, 2026
d32b294
style(lib): fix needless_continue lint (#4157)
MsfPablo Aug 15, 2026
8fcaf1a
docs(lib): expand crate-level cancel safety section with HTTP/1 vs HT…
MsfPablo Aug 17, 2026
8b2e533
style(lib): temporarily allow some new clippy lints (#4165)
seanmonstar Aug 24, 2026
08a2881
docs(contrib): add initial COLLABORATORS guide (#4158)
seanmonstar Aug 25, 2026
37c9d0c
style(lib): remove lints that have been removed in newer clippy (#4167)
tangaac Aug 26, 2026
6371cd4
v1.11.1
seanmonstar Aug 27, 2026
3b6b700
docs(security): fix typo (#4177)
vaibhav8a Aug 29, 2026
7611e61
style(lib): replace single-character lifetime names with descriptive …
dox4 Aug 29, 2026
203e4c7
style(lib): resolve collapsible_match lint (#4178)
nakaryo716 Aug 31, 2026
4f36f33
docs(hips): hyper improvement proposals (#4131)
seanmonstar Sep 1, 2026
a532926
perf(body): simpler custom Incoming channel (#4168)
seanmonstar Sep 8, 2026
6612d99
docs(maintainers): add 0x676e67 as a collaborator (#4184)
seanmonstar Sep 9, 2026
270feeb
docs(ext): remove broken `OriginalHeaderOrder` doctest (#4188)
cratelyn Sep 10, 2026
c9f0165
chore(dependencies): remove unused futures-channel from http1 feature…
0x676e67 Sep 10, 2026
83da75a
chore(ci): update to cargo-check-external-types 0.5.0 (#4189)
tottoto Sep 11, 2026
c6dca20
style(lib): address ignored_unit_patterns lint (#4193)
nakaryo716 Sep 13, 2026
74a3908
fix(http1): preserve hop-by-hop when setting close or keep-alive (#4196)
dtolnay Sep 15, 2026
e89d0d9
fix(http2): do not reserve capacity for idle Upgraded streams (#4198)
Dev-next-gen Sep 18, 2026
fd4ce42
style(lib): address clippy panics and missing_panics_doc lints (#4191)
Siech0 Sep 24, 2026
e60932d
docs: fix three typos (#4204)
toyeshhm Sep 26, 2026
c954d80
style(lib): address trivial, low quantity clippy lints (#4190)
Siech0 Sep 29, 2026
e1f6d9b
chore(clippy): allow clippy lints following 1.99.0 release (#4219)
dswij Oct 2, 2026
da3b1b1
style(lib): remove useless_borrows_in_formatting from the clippy allo…
ump45nose Oct 2, 2026
0d47440
style(lib): mark partial Debug impls as non-exhaustive (#4218)
badimalex Oct 3, 2026
714c7cf
style(lib): address cast-possible-truncation clippy findings (#4192)
Siech0 Oct 5, 2026
d1cd14e
feat(http1): add max_header_size limit for server and client (#4183)
Aditya-9-6 Oct 5, 2026
5dadff7
fix(http1): let a Connection close token win over a later keep-alive …
shoemoney Oct 5, 2026
a5d7fd7
fix(http1): always remove content-length if transfer-encoding is sent…
seanmonstar Oct 5, 2026
69396fd
fix(http1): remove content-length if transfer-encoding is auto-added …
seanmonstar Oct 5, 2026
c44f1cc
fix(http1): withdraw a stale want when the client dispatcher takes a …
shodoco Oct 6, 2026
254bf12
perf(body): skip waking a closed peer when a channel end drops (#4225)
0x676e67 Oct 6, 2026
7f67699
v1.12.0
seanmonstar Oct 6, 2026
f1b0876
docs(contrib): minor improvements to HIP-0001 (#4227)
seanmonstar Oct 7, 2026
97fff93
fix(http1): drain in-flight requests before dispatcher shutdown (#4222)
akasakariko Oct 9, 2026
2b454af
chore(ci): check that PR descriptions assert that the words are human…
seanmonstar Oct 9, 2026
b073378
style(proto): enforce clippy:let_unit_value (#4231)
cratelyn Oct 13, 2026
a8ab2c7
style(lib): enforce clippy::redundant_closure_for_method_calls (#4251)
trivikr Oct 29, 2026
8abd0b4
style(lib): enforce clippy::trivially_copy_pass_by_ref (#4252)
trivikr Oct 30, 2026
cf563e8
style(lib): enforce clippy::unnested_or_patterns (#4256)
trivikr Nov 2, 2026
c5e100c
chore(ci): deny warnings in 'features' step (#4253)
cratelyn Nov 9, 2026
b638fc0
feat(http2): add an executor getter for server and client (#4250)
robertream Nov 9, 2026
378f847
fix(http1): drop Content-Length when a response also has Transfer-Enc…
kevin9327 Nov 13, 2026
88520c3
fix(http2): keep connection open after rejecting CONNECT (#4235)
shuvroroy Nov 13, 2026
b1e7eab
chore(github): add human authorship checkbox to issue templates (#4267)
seanmonstar Nov 13, 2026
a44e32a
fix(http2): strip all headers named in every Connection header (#4271)
patrick-immometrica Nov 16, 2026
00a85ad
perf(http1): read chunk framing bytes without split_to (#4272)
patrick-immometrica Nov 16, 2026
7506206
fix(http1): error when final body chunk is shorter than content-lengt…
patrick-immometrica Nov 16, 2026
dea9acb
fix(client): fail parked h2 request with connection error on close (#…
bunnysayzz Nov 16, 2026
ac3f950
fix(http1): avoid adding connection-close to 101 responses (#4248)
akasakariko Nov 17, 2026
47c725c
fix(http1): prevent `SendRequest` from reporting ready while a reques…
akasakariko Nov 17, 2026
5634b91
fix(http2): prevent requests from hanging during concurrent connectio…
mingley Nov 17, 2026
6b7673f
test(http2): test for http2 connection shutdown race of pending reqs …
seanmonstar Nov 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: "Bug report 🐛"
description: Create a report to help us improve
labels: ["C-bug"]
body:
- type: checkboxes
attributes:
label: Human words
description: Communication between humans should be written by a human, not an LLM.
options:
- label: The words are written by a [human](https://seanmonstar.com/micro/20260729-i-want-your-own-words/).
- type: input
id: version
attributes:
Expand Down
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ assignees: ''

---

**Are the words provided written by a human, not an LLM?**
- [ ] The words have been written by a [human](https://seanmonstar.com/micro/20260729-i-want-your-own-words/).

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,12 @@ jobs:
- uses: Swatinem/rust-cache@v2

- name: check --feature-powerset
run: cargo hack --no-dev-deps check --feature-powerset --depth 2 --skip ffi,tracing
env:
RUSTFLAGS: "-D dead_code -D unused_imports"
run: cargo hack --no-dev-deps check --feature-powerset --depth 2 --features __deny_warnings --skip ffi,tracing

- name: check --feature-powerset with tracing feature
run: cargo hack --no-dev-deps check --feature-powerset --depth 2 --features tracing --skip ffi
run: cargo hack --no-dev-deps check --feature-powerset --depth 2 --features tracing,__deny_warnings --skip ffi
env:
RUSTFLAGS: "--cfg hyper_unstable_tracing -D dead_code -D unused_imports"
RUSTFLAGS: "--cfg hyper_unstable_tracing"

ffi:
name: Test C API (FFI)
Expand Down Expand Up @@ -298,12 +296,12 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2025-10-18 # Compatible version for cargo-check-external-types
toolchain: nightly-2026-03-20 # Compatible version for cargo-check-external-types

- name: Install cargo-check-external-types
uses: taiki-e/cache-cargo-install-action@v2
with:
tool: cargo-check-external-types@0.4.0
tool: cargo-check-external-types@0.5.0

- uses: Swatinem/rust-cache@v2

Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/pr-template-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: PR Template Verification

on:
pull_request_target:
types: [opened, edited, reopened, synchronize]

permissions: {}

jobs:
verify-template:
uses: hyperium/.github/.github/workflows/pr-template-check.yml@master
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
## v1.12.0 (2026-10-06)


#### Bug Fixes

* **http1:**
* withdraw a stale want when the client dispatcher takes a request (#4208) ([c44f1cc5](https://github.com/hyperium/hyper/commit/c44f1cc51c2bc45b502031a646d3d54315bd7a16))
* remove content-length if transfer-encoding is auto-added (#4224) ([69396fdd](https://github.com/hyperium/hyper/commit/69396fdd960629d69b09cc6c9b367ef8650c001d))
* always remove content-length if transfer-encoding is sent (#4223) ([a5d7fd78](https://github.com/hyperium/hyper/commit/a5d7fd7861598c0b8c857cb75240a75bcfbd96a3))
* let a Connection close token win over a later keep-alive (#4201) ([5dadff76](https://github.com/hyperium/hyper/commit/5dadff76d1cb5d21046218df3568569fbba8ed21))
* preserve hop-by-hop when setting close or keep-alive (#4196) ([74a39081](https://github.com/hyperium/hyper/commit/74a39081ff1496970fb75da75c5282b23a9b69e5))
* **http2:** do not reserve capacity for idle Upgraded streams (#4198) ([e89d0d93](https://github.com/hyperium/hyper/commit/e89d0d93d9566210ee95aea234a00952ebc4a202))


#### Features

* **http1:** add max_header_size limit for server and client (#4183) ([d1cd14ef](https://github.com/hyperium/hyper/commit/d1cd14eff392be63a2318d690cc9380723ec61a1), closes [#3832](https://github.com/hyperium/hyper/issues/3832))


### v1.11.1 (2026-08-27)


#### Bug Fixes

* **http1:**
* detect TE: trailers caselessly and with other values (#4152) ([72fcf545](https://github.com/hyperium/hyper/commit/72fcf545c9b4a261f31d89bafd3019a2d4e9e1d7))
* recognize `\n\r\n` as a head terminator in the partial-read fast path (#4147) ([3534d75c](https://github.com/hyperium/hyper/commit/3534d75c898da17b023e6bff9b4cf71afed123ad), closes [#4145](https://github.com/hyperium/hyper/issues/4145))
* flush bytes buffered by the write re-check before yielding (#4143) ([f660f5bf](https://github.com/hyperium/hyper/commit/f660f5bf6eed3fe793f899507ff5bb9e266d4b0d))
* evict pooled conn on request-side Connection: close (#4110) ([da19be08](https://github.com/hyperium/hyper/commit/da19be08f34d3da01c4c0f9cfe2837e7d377f73d))


## v1.11.0 (2026-07-20)


Expand Down
36 changes: 13 additions & 23 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hyper"
version = "1.11.0"
version = "1.12.0"
description = "A protective and efficient HTTP library for all."
readme = "README.md"
homepage = "https://hyper.rs"
Expand Down Expand Up @@ -39,7 +39,7 @@ itoa = { version = "1", optional = true }
pin-project-lite = { version = "0.2.4", optional = true }
smallvec = { version = "1.12", features = ["const_generics", "const_new"], optional = true }
tracing = { version = "0.1", default-features = false, features = ["std"], optional = true }
want = { version = "0.3", optional = true }
want = { version = "0.3.2", optional = true }

[dev-dependencies]
form_urlencoded = "1"
Expand Down Expand Up @@ -81,7 +81,7 @@ full = [
]

# HTTP versions
http1 = ["dep:atomic-waker", "dep:futures-channel", "dep:futures-core", "dep:httparse", "dep:itoa"]
http1 = ["dep:atomic-waker", "dep:futures-core", "dep:httparse", "dep:itoa"]
http2 = ["dep:atomic-waker", "dep:futures-channel", "dep:futures-core", "dep:h2"]

# Client/Server
Expand All @@ -96,6 +96,7 @@ capi = []
tracing = ["dep:tracing"]

# internal features used in CI
__deny_warnings = []
nightly = []

[lints.rust.unexpected_cfgs]
Expand All @@ -115,42 +116,26 @@ restriction = { level = "warn", priority = -2 }

arithmetic_side_effects = "allow" # TODO: consider
as_conversions = "allow" # TODO: tricky
cast_possible_truncation = "allow" # TODO: consider
cast_precision_loss = "allow" # TODO: consider
checked_conversions = "allow"
collapsible_match = "allow"
else_if_without_else = "allow"
enum_glob_use = "allow"
float_arithmetic = "allow"
ignored_unit_patterns = "allow"
indexing_slicing = "allow"
integer_division = "allow"
integer_division_remainder_used = "allow"
let_unit_value = "allow"
map_err_ignore = "allow"
map_unwrap_or = "allow"
match_wild_err_arm = "allow"
missing_fields_in_debug = "allow" # TODO: use finish_non_exhaustive
missing_errors_doc = "allow" # TODO: good to fix
missing_panics_doc = "allow" # TODO: might be false
multiple_inherent_impl = "allow"
multiple_unsafe_ops_per_block = "allow"
needless_continue = "allow"
needless_pass_by_value = "allow"
panic = "allow"
pattern_type_mismatch = "allow"
redundant_closure_for_method_calls = "allow"
redundant_else = "allow"
single_char_lifetime_names = "allow"
struct_excessive_bools = "allow" # TODO: bogus lint?
trivially_copy_pass_by_ref = "allow"
unnecessary_trailing_comma = "allow"
unnested_or_patterns = "allow"
unused_async = "allow" # TODO: is it for API?
unused_trait_names = "allow" # TODO: kinda annoying, but might be good to deny
unwrap_in_result = "allow"
useless_borrows_in_formatting = "allow"
wildcard_enum_match_arm = "allow"
definition_in_module_root = "allow"
unnecessary_rest_pattern = "allow"
rest_pattern_accessible_field = "allow"
needless_bool = "allow"

# explicitly allowed
absolute_paths = "allow" # sometimes its cleaner
Expand Down Expand Up @@ -359,3 +344,8 @@ required-features = ["full"]
name = "h1_shutdown_while_buffered"
path = "tests/h1_shutdown_while_buffered.rs"
required-features = ["full"]

[[test]]
name = "h1_ready_in_flight"
path = "tests/h1_ready_in_flight.rs"
required-features = ["full"]
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Security Policy

hyper (and related projects in hyperium) take security seriously, and greatly appreciate responsibile disclosure.
hyper (and related projects in hyperium) take security seriously, and greatly appreciate responsible disclosure.

## Report a security issue

Expand Down
2 changes: 1 addition & 1 deletion capi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Because of that, it's only accessible if `--cfg hyper_unstable_ffi` is passed to

## Building

The C API is part of the Rust library, but isn't compiled by default. Using `cargo`, staring with `1.64.0`, it can be compiled with the following command:
The C API is part of the Rust library, but isn't compiled by default. Using `cargo`, starting with `1.64.0`, it can be compiled with the following command:

```
RUSTFLAGS="--cfg hyper_unstable_ffi" cargo rustc --features client,http1,http2,ffi --crate-type cdylib
Expand Down
68 changes: 68 additions & 0 deletions docs/COLLABORATORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# hyper Collaborator Guide

This document describes how collaborators manage hyper.

- First off, a collaborator doesn't need to do all of the following perfectly.
- It takes time to learn.
- Instead, focus on growth.
- Get in the habit of checking this guide with some frequency, and improve rather than stagnate.

## Exemplify the Code of Conduct

- Our [code of conduct](./CODE_OF_CONDUCT.md) is not elaborate. It doesn't require much study, nor explication.
- To be a good collaborator, it does require internalizing it.
- The code of conduct is proactive, positive.
- A collaborator must be a good example of being kind.
- It should not be possible to find significant fault in a collaborator against the simple principles in the code of conduct.

## Internalize the Vision

- Understand and use the project's [vision](./VISION.md) when helping guide decisions.

## Review Pull Requests

- Review pull requests promptly and kindly. Approve CI for new contributors.
- Consider telling a maintainer to add you to the automated review queue.
- Collaborators should feel comfortable approving and merging straightforward changes. Such as documentation, chores, styling, simple refactors, and basic bug fixes.
- When reviewing larger changes, keep in mind the points on [being API caretakers](#api-caretakers).
- When approving a PR, allow time for other collaborators to look before merging.
- Especially if the PR is newer, or has a more significant change.
- When merging, prefer squashing (it adds in the PR number). Touch up the commit message to match our [COMMITS](./COMMITS.md) style.

## Provide Feedback on Features and Designs

Collaborators try to participate early and often when new features are proposed. They also actively consider and recommend new features that users may need.

### API Caretakers

Collaborators are caretakers of hyper's API. When proposing, discussing, or reviewing changes to hyper, keep the following in mind:

- Conservative additions
- Conservative APIs reduce breaking changes
- Don't expose internal implementation details
- [Accessors can reveal internal repr](https://seanmonstar.com/micro/20260721-accessors-reveal-internal-repr/)
- hyper-util is a place to explore first
- [Vision: Not quite stable, but utile](./VISION.md#not-quite-stable-but-utile-useful)
- [Roadmap: hyper-util](./ROADMAP.md#hyper-util)
- Unstable features
- Unstable features are not bound by our stability promise.
- We don't just name a crate feature with unstable.
- This has the problem of an intermediary crate enabling it, and someone depending on _that_ crate and not realizing they are accessing unstable hyper features.
- All unstable features require a conditional config flag passed to the Rust compiler.
- For example, `hyper_unstable_ffi`.
- Breaking changes
- These would usually be reserved for a new SemVer major release, such as v2.0, and thus would usually be very rare.
- An exception is fixing a mistake quickly after release of a new feature.
- All breaking changes require approval by a maintainer.

## Welcome New Contributors

- Help new contributors find their way around the project and its processes. Follow the guidance on [acknowledging people when triaging](./ISSUES.md#acknowledge).

## Answer Questions

- Answer questions in issues or chat when you can, or help find someone who can. See the project's [help channels](../CONTRIBUTING.md#help).

## Mentor Contributors

- Help contributors grow toward becoming project members. Issue triaging often provides opportunities for [mentoring](./ISSUES.md#mentoring), but the ideas can be applied to reviews, or when answering questions.
3 changes: 2 additions & 1 deletion docs/GOVERNANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ How to become:
### Collaborator

Collaborators are contributors who have been helping out in a consistent basis.
See the [collaborator guide](./COLLABORATORS.md) for practical guidance on the role.

Responsibilities:

Expand Down Expand Up @@ -116,7 +117,7 @@ How to become:

- Advisors are invited by a maintainer.
- Sometimes they are experienced Collaborators who must step back from active
contributing. Sometimes they are experts placed elsehwere who are friendly to
contributing. Sometimes they are experts placed elsewhere who are friendly to
the project.

### Maintainer
Expand Down
1 change: 1 addition & 0 deletions docs/MAINTAINERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ To see what these roles do, and how to become one, look at [GOVERNANCE](./GOVERN
- dswij (@dswij)
- tottoto (@tottoto)
- katelyn martin (@cratelyn)
- 0x676e67 (@0x676e67)

### Collaborator emeriti

Expand Down
2 changes: 1 addition & 1 deletion docs/MSRV.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Minimum Support Rust Version (MSRV)
# Minimum Supported Rust Version (MSRV)

hyper's current policy is to always support a Rust version at least 6 months
old. That is, a compiler version released within the last 6 months can compile
Expand Down
41 changes: 41 additions & 0 deletions docs/hips/0000-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# HIP-0000: Template

- Authors:
- Created: (date)
- PR: (link to pull request)

## Summary

(The tl;dr. Concise statement of the reason for the document and recommendation.)

## Tenets

(List of tenets, values, guiding principles that are used to evaluate the proposal.)

## Motivation

(Clearly explain the problem.)

## Recommendation

### User Experience

### Implementation

### Testing Plan

(Optional: are there any special considerations for testing required?)

### Security Considerations

(What security risks might exist for the recommendation? Can we reduce them? What should users consider when using it?)

## Alternatives

(List alternatives considered, and especially why they were not recommended. This portion of "documenting the why" helps Future Us to see if anything has changed since last considered.)

## Unresolved Questions


## References

Loading
Loading