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

valum-framework / valum / 981 / 1
59%
master: 59%

Build:
DEFAULT BRANCH: master
Ran 10 Jan 2016 09:57AM UTC
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

10 Jan 2016 09:54AM UTC coverage: 52.248% (+0.6%) from 51.628%
981.1

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

Source Files on job 981.1
  • Tree
  • List 0
  • Changed 21
  • Source Changed 20
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 981
  • Travis Job 981.1
  • fd29dd85 on github
  • Prev Job for on master (#980.1)
  • Next Job for on master (#982.1)
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