blvd-methods
Combinators to wrap HTTP handlers and filter based on method.
http;
Supports every method that Node HTTP does.
Custom method getting
If you're using something other than Node HTTP, and req
isn't the first argument to the handler, or the method is somewhere other than req.method
, you can override getMethod
using underscored methods:
var get = methods; ;
Or override them all at once with withGetMethod
:
var methods = ; methods;
Routing
blvd-methods
is designed to work well with Boulevard routers:
;
Licence
MIT.