blear.express.http-method-override

1Introduction

2Example

将 http 请求头重写。如接受到的数据为

request.method: POST
request.headers[x-http-method-override]: ABC

那么,会将request.method重写为ABC

var httpMethodOverride = require('blear.express.http-method-override');
var express = require('express');

var app = express();

app.use(httpMethodOverride());

3Static

3.1.defaults

  • 类型:Object
  • 说明:默认配置

3.2.defaults.header

4Dependencies

5Reference

无。