Skip to content

xize/SimpleHttpServer

Repository files navigation

SimpleHttpServer

this is my first web server library written in java be aware that the library still lacks some features.

javadocs can be found at: https://ci.0c3.eu/job/SimpleServer/

#current features:

  • post support
  • get support
  • mime support (limited as of yet)

#how to setup a server:

String servername = "my-server";
SimpleServer server = new SimpleServer(servername, 80);
server.addListener(new SomeServerEvent()); //whereas SomeServerEvent implements ServerListener and has atleast one method using the @ServerEvent anotation
server.start();

#how to setup events:

public class SomeServerEvent implements ServerListener {
     @ServerEvent
     public void onEvent(SimpleServerEvent e) {
        //do something, note that you need manual register this class with server.addListener(this class); as mentoid the example above.
     }
}

About

This is a library Im creating to easily make web servers!

Resources

License

GPL-3.0, MIT licenses found

Licenses found

GPL-3.0
LICENSE_GPL3.txt
MIT
LICENSE_MIT.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages