• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

valum-framework / valum / 981
59%

Build:
DEFAULT BRANCH: master
Ran 10 Jan 2016 09:57AM UTC
Jobs 1
Files 64
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
981

push

travis-ci

arteymix
Transform subdomain and negociation middlewares

They have been modified produce 'HandlerCallback' which:

 - forward a provided callback on success
 - invoke next otherwise

It's much easier to describe situation where requests with a specific
subdomain should be delegated while others should keep routing.

    app.use (subdomain ("api", api.handle));

    app.get ("", (req, res) => {
        // other requests handled here
    });

For content negociation, middlewares can be sequenced with 'then' to
handle multiple cases:

    app.get ("", () => {
        // common work here
        next (req, res);
    }).then (accept ("text/xml", (req, res) => {
        // produce the XML resource
    })).then (accept ("application/json", (req, res) => {
        // produce the JSON resource
    }));

Update the tests and code example in the documentation.

430 of 823 relevant lines covered (52.25%)

38.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 981.1 10 Jan 2016 09:57AM UTC 0
52.25
Travis Job 981.1
Source Files on build 981
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #981
  • fd29dd85 on github
  • Prev Build on master (#980)
  • Next Build on master (#982)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc