midd-header

0.1.4 • Public • Published

HTTP header middleware for midd

Usage

const middHeader = require('midd-header');
app.use(middHeader)

API

req.get(name)

name is case insensitive. like req.get('content-Type')

resp.set(name, value)

Equal to resp.setHeader

resp.set(obj)

obj is headers key-value pairs.

License

Licensed under MIT

Copyright (c) 2017 Tian Jian

Readme

Keywords

Package Sidebar

Install

npm i midd-header

Weekly Downloads

2

Version

0.1.4

License

MIT

Last publish

Collaborators

  • kiliwalk
  • tianjianchn