<div dir="ltr">Hi all,<br><br>I've been looking at the HttpServer API recently with the aim of making its API a little more friendly to the average joe.<br><br>One area that feels like it would be an easy win, and correct me if I'm wrong, is with the "backlog" parameter provided at server creation.<br><br><font face="monospace">HttpServer.create(new InetSocketAddress(4000), 0);<br></font><br><font face="monospace">HttpServer.create().bind(new InetSocketAddress(4000), 0);<br></font><br>In both cases, values less than or equal to <font face="monospace">0</font><font face="arial, sans-serif"> are documented to mean "use a system default." It feels beneficial to provide overloads which do not require users to specify that.<br></font><br><font face="monospace">HttpServer.create(new InetSocketAddress(4000));<br></font><br><font face="monospace">HttpServer.create().bind(new InetSocketAddress(4000));</font><br><br> With perhaps similar treatment given to the <font face="monospace">create</font><font face="arial, sans-serif"> method which sets up an initial context.<br></font><br>(There is at least 1 more "magic number" in the API @ .<font face="monospace">sendResponseHeaders</font>, but one thing at a time)<br></div>