rackspace-shared-middleware

Shared Rackspace Express middleware.

npm install rackspace-shared-middleware
1 downloads in the last week
42 downloads in the last month

Rackspace Shared 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.

Timing

A middleware which uses instruments library to record how long the request processing took.

License

This library is distributed under the Apache 2.0 license.

npm loves you