Lightweight, fast, zero dependency restful routing framework inspired by express and restify.
$ npm install urest
const Rest JsonBodyParser = ;const app = ;app;app;app;
Native HTTP server
Google Cloud Functions
moduleexports = app;
Errors passed into the next function will be logged, then returned to the client obscured behind a unique ID.
const UErrors = ;const UInternalServerError = UErrors;app;
Interceptors works in much the same way as middleware but act on the response before it is returned to the client.
The following example will check for the header
"accept-encoding": "gzip" and will compress response bodies as fit.
const Rest JsonBodyParser = ;const Neutron = ;const app = ;app;app;app;const server = app;
The value passed into res.send is attached as
res.responseData, the following example checks for a property in the response and prevents the request if not true.
const Rest UErrors = ;const UUnauthorizedError = UErrors;const app = ;app;