Skip to content

orinak/koa-links

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa-links

Use ctx.links as proxy to ctx.response.headers['Link'] in Koa apps

Usage

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'
})

Installation

Install using npm

npm install koa-links

License

MIT

About

Use 'Links' header from `app.context`

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published