koa API Manual
Guide
Attribute
Method
- ctx.cookies.get(name, [options])
- ctx.cookies.set(name, value, [options])
- ctx.throw([status], [msg], [properties])
- ctx.assert(value, [status], [msg], [properties])
- app.listen(...)
- app.callback()
- app.use(function)
- response.get(field)
- response.set(field, value)
- response.append(field, value)
- response.set(fields)
- response.remove(field)
- response.is(types...)
- response.redirect(url, [alt])
- response.attachment([filename])
- response.vary(field)
- response.flushHeaders()
- request.is(types...)
- request.accepts(types)
- request.acceptsEncodings(encodings)
- request.acceptsCharsets(charsets)
- request.acceptsLanguages(langs)
- request.get(field)