1.0.0 • Published 8 years ago

list-http-methods v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

list-http-methods

List all HTTP methods supported by Node.js http module.

Usage

var lhm = require('list-http-methods');

lhm.lowercase // ['get', 'post', 'mkcol'...]

lhm.uppercase // ['GET', 'POST', 'MKCOL'...]

lhm.exclude(['get']) // ['post', 'mkcol'...]

Note that lhm.exclude will detect the case of the first element in the sent exclusion array and return the list in that case. There is no checking for mixed cases in the array, and the default for an empty exclusion array is lowercase.

1.0.0

8 years ago