http4js
Table of Contents
- Overview
- Handlers and Filters
- Request and Response API
- URI API
- Routing API
- In Memory Testing
- End to End Testing
- Approval testing with fakes
- Zipkin tracing
- Https Server
- Proxy
- Use in Javascript
- Example App
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