@hoajs/vary
v0.1.1
Published
Vary middleware for Hoa.
Downloads
107
Readme
@hoajs/vary
Vary middleware for Hoa.
Installation
$ npm i @hoajs/vary --saveQuick Start
import { Hoa } from 'hoa'
import { vary } from '@hoajs/vary'
const app = new Hoa()
app.extend(vary())
app.use(async (ctx, next) => {
ctx.res.vary('Accept')
ctx.res.body = 'Hello, Hoa!'
})
export default appDocumentation
The documentation is available on hoa-js.com
Test (100% coverage)
$ npm testLicense
MIT
