• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

elixir-mint / mint / b9991636b70568a9386f9f4adc9a98346afc8145-PR-497
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: http2-connect-target
DEFAULT BRANCH: main
Ran 21 Jul 2026 05:01PM UTC
Jobs 1
Files 21
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Jul 2026 05:00PM UTC coverage: 87.95% (+0.02%) from 87.935%
b9991636b70568a9386f9f4adc9a98346afc8145-PR-497

Pull #497

github

ericmj
Use the request target as the CONNECT :authority in Mint.HTTP2

Mint.HTTP2 hardcoded the :authority pseudo-header of CONNECT requests to
the connection's own authority and ignored the path argument, so a
CONNECT could only target the server itself. Per RFC 9113 section 8.5
the request target of a CONNECT is the host and port of the tunnel
destination, which request/5 now takes from its path argument, mirroring
HTTP/1 (HTTP1.request(conn, "CONNECT", "host:443", ...)).

Extended CONNECT (RFC 8441) is unchanged: when the headers contain a
:protocol pseudo-header, :authority stays the connection authority and
the caller passes :scheme and :path explicitly, which is how
mint_web_socket drives WebSocket over HTTP/2.

The new tests also pin the tunnel stream lifecycle: bytes flow in both
directions on the open stream, a content-length header on the 2xx
response doesn't end the tunnel, a server END_STREAM closes the whole
tunnel, and a client :eof half-closes it while receiving keeps working.
The docs describe CONNECT tunnels in Mint.HTTP2.request/5 and how to
build HTTP/2 proxying on top of them in the Proxying section.
Pull Request #497: Use the request target as the CONNECT :authority in Mint.HTTP2

1467 of 1668 relevant lines covered (87.95%)

494.6 hits per line

Coverage Regressions

Lines Coverage ∆ File
36
93.55
0.02% lib/mint/http2.ex
12
65.71
0.0% lib/mint/http.ex
Jobs
ID Job ID Ran Files Coverage
1 b9991636b70568a9386f9f4adc9a98346afc8145-PR-497.1 21 Jul 2026 05:01PM UTC 21
87.95
GitHub Action Run
Source Files on build b9991636b70568a9386f9f4adc9a98346afc8145-PR-497
  • Tree
  • List 21
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #497
  • PR Base - main (#D9E1824C...)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc