Skip to content

nikosf95/httpserver

Repository files navigation

httpserver

A simple http server designed for embedding based on the JDK sun.net.httpserver.

It adds websocket support using modified source from nanohttpd.

All async functionality has been removed. Most synchronized blocks were removed in favor of other Java concurrency concepts.

The end result is an implementation that supports adoption of Virtual Threads available in JDK 21.

using

Set the default HttpServer provider when starting the jvm:

-Dcom.sun.net.httpserver.HttpServerProvider=robaho.net.httpserver.DefaultHttpServerProvider

future work

There is no http2 support.

About

a lightweight, ultra-performant, zero dependency JDK http server implementation designed for embedding and optimized for virtual threads

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 99.9%
  • Dockerfile 0.1%