> Add guards against `HttpHeaders::firstValueAsLong` failures.
> `H3MalformedResponseTest` is overhauled – migrated to JUnit, reinforced with
> exception type tests, etc. – but not all `firstValueAsLong` changes are
> verified with new additional tests. `test/jdk/java/net/httpclient/` tests
> still do pass.
Volkan Yazici has updated the pull request with a new target base due to a
merge or a rebase. The pull request now contains 18 commits:
- Pull changes from upstream
- Merge remote-tracking branch 'upstream/master' into firstValueAsLong
- Close connection after `Content-Length` read failure in `Http1Response`
- Insert the redundant `Http3Stream` assert back
- Introduce dangling `firstValueAsLong("content-length")` calls back
- Document `Http1Response::ignoreBody`
- Remove redundant `finally`
- Use `-1` as default in `Http3ExchangeImpl`
- Use `readStatusCode()` in `Http3Stream`
- Replace `orElse(null)` with `Optional` usage
- ... and 8 more: https://git.openjdk.org/jdk/compare/786833cd...b677820c
-------------
Changes: https://git.openjdk.org/jdk/pull/28431/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28431&range=07
Stats: 673 lines in 7 files changed: 251 ins; 128 del; 294 mod
Patch: https://git.openjdk.org/jdk/pull/28431.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28431/head:pull/28431
PR: https://git.openjdk.org/jdk/pull/28431