Skip to content

Fabccc/Omny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Omny Web Framework

Java lightweight web serverside framework

TODO

  • HTTP Request handling
  • HTTP Response
  • Files type
    • Text files
    • Binary files
    • JSON from Object
  • Method
    • GET
    • POST
    • PUT
    • DELETE
  • File routing
    • Static files routing
    • Default file routing (from a Router class)
    • Param file routing
  • Encoding
    • GZIP
    • Deflate
  • Optimizing
    • Cache request
    • Fast cache lookup
    • More ??..
  • Features from the framework
    • Namespaces
    • More ...
  • Support HTTP version
    • HTTP/1.1
    • HTTP/2
    • HTTP/3

Microbenching test can be found under jmh-test/ folder

Microbenching README.MD

Example

class HTTPServer{
    public static void main(String[] args) {
		launch(new HTTPServer());
	}

	public HTTPServer() {
		super("./conf.toml");
	}

    @HTTP(url = "/")
	public Route indexRoute = new FileRoute("index.html");

    @HTTP(url = "/test")
	public View index(Request req, Response res) {
		res.setHeader("Content-Type", "text/plain");
		return new TextView("This is a test!");
	}

	@Override
	public void route(Router router) {
		router.route(this);
		router.staticRoute("./static"); // Static file routing (eg: png, jpg, xml files)
	}
}    

About

Omny is a lightweight Java webframework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages