rackspace-shared-middlewares

npm install rackspace-shared-middlewares
2 downloads in the last week
2 downloads in the last month

Rackspace Express middleware

Shared Rackspace Express middleware.

Build status

Build Status

Available middleware

Access Logger

Log express access attempts using logamgic.

Transaction ID

Attaches transaction id to every request and return it in the response inside the X-Response-Id header.

Body size limiter

Middleware which accepts and limits the maximum size of the request body.

Allow JavaScript XHR

A middleware which responds to any OPTIONS requests with a 204 and an Access control Response.

Body parser

Middleware which uses Swiz definitions to parse a request body.

Validator

A middleware which deserializes the request body and performs a validation on it using the provided Valve object. This middleware must be used in combination with body parser one.

License

This library is distributed under the Apache 2.0 license.

npm loves you