Socket
Socket
Sign inDemoInstall

midd-header

Package Overview
Dependencies
0
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    midd-header

header middleware for midd


Version published
Weekly downloads
2
Maintainers
2
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 22 Feb 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc