Skip to content

HTTP/2 cleartext support#8127

Open
hytromo wants to merge 6 commits into
mitmproxy:mainfrom
hytromo:h2c-support
Open

HTTP/2 cleartext support#8127
hytromo wants to merge 6 commits into
mitmproxy:mainfrom
hytromo:h2c-support

Conversation

@hytromo

@hytromo hytromo commented Mar 13, 2026

Copy link
Copy Markdown

Description

Adds support for h2c (cleartext HTTP/2) connections via prior knowledge, where the client sends the HTTP/2 connection preface directly.

Motivation

Cleartext http/2 has been discussed before #3362, #2116, #6998 and there has been an attempt to make this work in the past #4661 - so there is community interest in this feature.

In my case, I am making gRPC calls with Istio handling TLS, resulting in HTTP/2 cleartext calls from the application's viewpoint. Adding mitmproxy to this mix seems impossible without h2c support.

Validation

Apart from the existing working and new tests, I also tested recording and replaying h2c requests with success.

recorded flaw visualization

Checklist

  • I have updated tests where applicable.
  • I have added an entry to the CHANGELOG.

@autofix-ci

autofix-ci Bot commented Mar 13, 2026

Copy link
Copy Markdown
Contributor

Hi! I'm autofix logoautofix.ci, a bot that automatically fixes trivial issues such as code formatting in pull requests.

I would like to apply some automated changes to this pull request, but it looks like I don't have the necessary permissions to do so. To get this pull request into a mergeable state, please do one of the following two things:

  1. Allow edits by maintainers for your pull request, and then re-trigger CI (for example by pushing a new commit).
  2. Manually fix the issues identified for your pull request (see the GitHub Actions output for details on what I would like to change).

@hytromo hytromo marked this pull request as ready for review March 16, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant