1.1.0 • Published 8 years ago

openrosa-request-middleware v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

OpenRosa Request Middleware

Very simple middleware to check for OpenRosa headers on a request and add OpenRosa headers to a response in an Express app, as defined by https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaRequest

Usage

var OpenrosaMiddleware = require('openrosa-request-middleware');

app.use(OpenrosaMiddleware());

Note that it exports a factory that creates the middleware when invoked.

pass options = {strict: false} to ignore request headers