Question about com.sun.net.httpserver.HttpExchange#sendResponseHeaders
Wenbo Zhu
wenboz at google.com
Thu Jan 31 23:56:40 UTC 2019
Per the HTTP spec, chunked encoding may not be needed if "Connection:
close" is set and the TCP connection will be closed (FIN) to complete the
response body.
I am yet to write a test for this but the javadoc needs to address this
behavior..
This behavior can be supported using the existing API, e.g. by asking the
application to add the Connection header before #sendResponseHeaders is
called.
===
I am adding com.sun.net.httpserver. as a lightweight http/1 server runtime
for a framework. The (low-level) com.sun.net APIs are very well documented.
Thanks for your work on this library.
- Wenbo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20190131/282d6911/attachment.html>
More information about the net-dev
mailing list