Use ctx.links
as proxy to ctx.response.headers['Link']
in Koa apps
const Koa = require('koa')
const links = require('koa-links')
const app = new Koa()
app.use(links())
app.use(ctx => {
ctx.links.self = 'http://example.com/'
ctx.body = 'done'
})
Install using npm
npm install koa-links
MIT