express-method-override

0.0.3 • Public • Published

Express Method Override

Override the method of a request based on a the X-HTTP-Method-Override header or custom query/post parameter.


Installation

npm install express-method-override

Usage:

// Be sure to place after the body parser if you want to accept the method 
// override using a post parameter
app.use(express.bodyParser());
 
// Accepts a single argument, the name of the method override parameter,
// defaults to "_method"
app.use(require('express-method-override')('method_override_param_name'));

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    27
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    27
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i express-method-override

Weekly Downloads

27

Version

0.0.3

License

none

Last publish

Collaborators

  • jmerrick