Skip to main content

app

Initial Application.

import nhttp from "@nhttp/nhttp";

const app = nhttp();

// more

Config

Configure apps.

...
const app = nhttp(config);
...

bodyParser

Config body-parser. default to true or auto parses body.

parseQuery

Custom parse query. default undefined.

stackError

Send error stacks in response for default error handling. default to true.