http4js

Table of Contents

How to require and use http4js in js

yarn add http4js
const http4js = require('http4js');
const Res = http4js.Res;
const Method = http4js.Method;
const routes = http4js.routes;

routes(Method.GET, "/", async (req) => new Res(200, "OK"))
    .asServer()
    .start();

Prev: Proxy

Next: Example App