Easy to use embedded web server you can build into your application.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
core
file
.gitignore
LICENSE
README.md
mantikor-server.log
pom.xml

README.md

Mantikor

Mantikor is a simple and lightweight webserver designed build it into your own application as an embedded webserver to handle handle web interfaces or similar shit. If you want to build RESTful services better take a look at https://github.com/D3adspaceEnterprises/echidna

Installation / Usage

  • Install Maven
  • Clone this repo
  • Install: mvn clean install

Maven dependencies

<dependency>
    <groupId>de.d3adspace</groupId>
    <artifactId>mantikor-core</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>

Example

MantikorConfig mantikorConfig = MantikorConfig.newBuilder()
	.setServerHost("localhost")
	.setServerPort(8080)
	.createMantikorConfig();
		
MantikorServer mantikorServer = new MantikorServer(mantikorConfig) {
	@Override
	public HTTPResponse handleRequest(HTTPRequest request) {
		return HTTPResponse.newBuilder()
			.setStatus(HTTPStatus.NOT_FOUND)
			.setHeaders(new HTTPHeaders())
			.createHTTPResponse();
	}
};
		
mantikorServer.start();