This is a mini HTTP server library for NodeJS.
This library is very fast as it is zero dependency.
Run this command in your project directory!
$ npm install @hamjs/http
Before you use @hamjs/http, you have to require it. Example, below.
const http = ;
Then, you can create and listen the server. Example, below.
...const app = ;// routing here...app;
To add route, you can use the router. Example, below.
The handler look like here.
Full example code.
const Http = ;const app = ;approuter;app;