methods
HTTP methods that node supports
Last updated 4 years ago by dougwilson .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install methods 
SYNC missed versions from official npm registry.

Methods

NPM Version NPM Downloads Node.js Version Build Status Test Coverage

HTTP verbs that Node.js core's HTTP parser supports.

This module provides an export that is just like http.METHODS from Node.js core, with the following differences:

  • All method names are lower-cased.
  • Contains a fallback list of methods for Node.js versions that do not have a http.METHODS export (0.10 and lower).
  • Provides the fallback list when using tools like browserify without pulling in the http shim module.

Install

$ npm install methods

API

var methods = require('methods')

methods

This is an array of lower-cased method names that Node.js supports. If Node.js provides the http.METHODS export, then this is the same array lower-cased, otherwise it is a snapshot of the verbs from Node.js 0.10.

License

MIT

Current Tags

  • 1.1.2                                ...           latest (4 years ago)

7 Versions

  • 1.1.2                                ...           4 years ago
  • 1.1.1                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
  • 0.1.0                                ...           7 years ago
  • 0.0.1                                ...           8 years ago
Downloads
Today 4,091
This Week 124,695
This Month 231,121
Last Day 29,727
Last Week 167,299
Last Month 681,340
Dependencies (0)
None
Dev Dependencies (2)
Dependents (785)

Copyright 2014 - 2017 © taobao.org |