Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 414 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 414 Bytes

@qiwi/mware-crumbs

X-Forwarded-* proxying middleware

Install

yarn add @qiwi/mware-crumbs
npm i @qiwi/mware-crumbs

Usage

import crumbs from '@qiwi/mware-crumbs'
import express from 'express'
import request from 'request'

const app = express()
app.use(crumbs())

app.get('/foo/bar', (req, res) => {
  req.pipe(request({...})).pipe(res)
})

app.listen(...)

License

MIT