From 86effcd5c65c99b748a1437c7e668e76e4a2ec79 Mon Sep 17 00:00:00 2001 From: Jonathan Ong Date: Tue, 24 Dec 2013 22:59:55 -0800 Subject: [PATCH] docs: move context aliases below context-specific stuff --- docs/api/context.md | 102 ++++++++++++++++++++++---------------------- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/docs/api/context.md b/docs/api/context.md index d3bd199..684b25a 100644 --- a/docs/api/context.md +++ b/docs/api/context.md @@ -23,57 +23,6 @@ app.use(function *(){ }); ``` -## Request aliases - - The following accessors and alias [Request](request.md) equivalents: - - - `ctx.header` - - `ctx.method` - - `ctx.method=` - - `ctx.url` - - `ctx.url=` - - `ctx.path` - - `ctx.path=` - - `ctx.query` - - `ctx.query=` - - `ctx.querystring` - - `ctx.querystring=` - - `ctx.length` - - `ctx.host` - - `ctx.fresh` - - `ctx.stale` - - `ctx.socket` - - `ctx.protocol` - - `ctx.secure` - - `ctx.ip` - - `ctx.ips` - - `ctx.subdomains` - - `ctx.is()` - - `ctx.accepts()` - - `ctx.acceptsEncodings()` - - `ctx.acceptsCharsets()` - - `ctx.acceptsLanguages()` - - `ctx.get()` - -## Response aliases - - The following accessors and alias [Response](response.md) equivalents: - - - `ctx.body` - - `ctx.body=` - - `ctx.status` - - `ctx.status=` - - `ctx.length=` - - `ctx.type` - - `ctx.type=` - - `ctx.headerSent` - - `ctx.redirect()` - - `ctx.attachment()` - - `ctx.set()` - - `ctx.remove()` - - `ctx.lastModified=` - - `ctx.etag=` - ## API `Context` specific methods and accessors. @@ -145,3 +94,54 @@ throw err; client responses, which is typically not the case for error messages since you do not want to leak failure details. + +## Request aliases + + The following accessors and alias [Request](request.md) equivalents: + + - `ctx.header` + - `ctx.method` + - `ctx.method=` + - `ctx.url` + - `ctx.url=` + - `ctx.path` + - `ctx.path=` + - `ctx.query` + - `ctx.query=` + - `ctx.querystring` + - `ctx.querystring=` + - `ctx.length` + - `ctx.host` + - `ctx.fresh` + - `ctx.stale` + - `ctx.socket` + - `ctx.protocol` + - `ctx.secure` + - `ctx.ip` + - `ctx.ips` + - `ctx.subdomains` + - `ctx.is()` + - `ctx.accepts()` + - `ctx.acceptsEncodings()` + - `ctx.acceptsCharsets()` + - `ctx.acceptsLanguages()` + - `ctx.get()` + +## Response aliases + + The following accessors and alias [Response](response.md) equivalents: + + - `ctx.body` + - `ctx.body=` + - `ctx.status` + - `ctx.status=` + - `ctx.length=` + - `ctx.type` + - `ctx.type=` + - `ctx.headerSent` + - `ctx.redirect()` + - `ctx.attachment()` + - `ctx.set()` + - `ctx.remove()` + - `ctx.lastModified=` + - `ctx.etag=` \ No newline at end of file