IHttpRequestHandler hdl = new IHttpRequestHandler() {
@Supports100Continue
public void onRequest(IHttpExchange exchange) throws IOException {
exchange.send(new HttpResponse(100)); // send continue
exchange.send(new HttpResponse(200, "text/plain", "OK"));
}
};
HttpServer server = new HttpServer(hdl);
server.start();