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

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

Build:
DEFAULT BRANCH: master
Ran 19 Dec 2015 02:38AM UTC
Files 43
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

19 Dec 2015 02:38AM UTC coverage: 58.25% (+1.2%) from 57.089%
941.1

push

travis-ci

Guillaume Poirier-Morency
Provide a middleware and utilities to handle subdomains

The 'subdomain' middleware matches request which subdomain is consistent
with the provided pattern. The pattern also support jokers '*'.

    var app = new Router ();
    var api = new Router ();

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

The default behaviour is to accept request which are part of the
provided subdomain in a suffix fashion. The 'strict' flag expects the
request to have the exact same subdomains.

The 'extract' utility is capable of splitting a hostname in an array of
labels. It drops the two top-most labels (eg. 'example.com') as they are
not typically part of what an application should consider as subdomains.

Provide minimal documentation and tests.

5405 of 9279 relevant lines covered (58.25%)

11.93 hits per line

Source Files on job 941.1
  • Tree
  • List 0
  • Changed 10
  • Source Changed 9
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 941
  • Travis Job 941.1
  • e5b344a6 on github
  • Prev Job for on master (#939.1)
  • Next Job for on master (#944.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