@impactor/express
v6.0.0
Published
express utils and middlewares
Readme
express utils and middleware
Middleware
auth: check if the request is made by an authorized personcache: checks if the request is cached by any controller and return the cached dataexec: execute any code, such as logging the request infofiles-parser: parse file uploads.host: create a host mapping, i.e. change req.originalUrl based on the hostnameredirect: redirect the request to another url.transformer: modify the response just before it is sent, i.e. beforereq.send(value)
Errors
HttpError: an error with HTTP status code.
