Feedback
Inspect and reject HTTP responses before reading their bodies
- Status
- Accepted
- Fixed in
- -
- Area
- compiler
- Source discussion
- -
- Last updated
- 2026-11-14
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Let applications inspect response status and headers and reject an unwanted response before URLConnection reads and buffers its body. This allows clients to refuse non-HTML responses, oversized declared content and other unsuitable downloads using the response to the actual request.