Proposal: 8355572: Implement Range header support for jwebserver
Ethan McCue
ethan at mccue.dev
Wed Oct 22 17:56:29 UTC 2025
Adding for context that there are legitimate usages for this that are
within the jdk httpserver's remit of jwebserver and educational purposes.
Cheerpj would let a student run their java code in a browser and requires
range headers support.
On Wed, Oct 22, 2025, 7:23 AM Daisuke Yamazaki <d.yamazaki at peya.tokyo>
wrote:
> Hello all,
>
> I would like to work on implementing Range header support for jwebserver,
> related to JDK-8355572.
> Before I start working on it, i'd like to confirm whether it's okay for me
> to
> take this issue.
>
> Here's my current design idea:
>
> 1. Introduce a RangeEntry record inside FileServerHandler to represent
> each requested range
> 2. In FileServerHandler.serveFile(), detect the Range header and parse it
> into
> a list of RangeEntry objects.
> If parsing fails or the range is invalid, return 416 Range Not
> Satisfiable.
> 3. If multiple ranges are specified, generate a random boundary
> string and return a multipart/byteranges response.
>
> Please let me know if it’s okay for me to proceed with this implementation,
> or if there are any design points I should consider before starting.
>
> Thanks,
> D. Yamazak
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/net-dev/attachments/20251022/b4620761/attachment.htm>
More information about the net-dev
mailing list