openrosa-request-middleware

    1.1.0 • Public • Published

    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

    Install

    npm i openrosa-request-middleware

    DownloadsWeekly Downloads

    7

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • andrew_chou
    • substack
    • karissa
    • digidem-admin
    • gmaclennan
    • noffle