UNPKG

@goa/goa

Version:

The Goa Source Code For Compilation Into @Goa/Koa That Includes Modules, Tests, Types And Dependencies.

11 lines (9 loc) 275 B
import Goa from '../../../src' const goa = new Goa() goa.use((ctx) => { /* start example */ ctx.response.set('Foo', ['bar', 'baz']) ctx.response.set('Accept', 'application/json') ctx.response.set({ Accept: 'text/plain', 'X-API-Key': 'tobi' }) /* end example */ })