From 14cdfb7fc4870805ce1817dee133cfa49d240b1a Mon Sep 17 00:00:00 2001 From: Qiming zhao Date: Fri, 14 Feb 2014 13:42:04 +0800 Subject: [PATCH] fix doc, getter of type is delegated to request Same kind of confusing thing as #215 mentioned, user have to remember that getters and setters of the `length` and `type` property are different. --- docs/api/context.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/context.md b/docs/api/context.md index 6fd744b..0158b33 100644 --- a/docs/api/context.md +++ b/docs/api/context.md @@ -126,6 +126,7 @@ throw err; - `ctx.querystring` - `ctx.querystring=` - `ctx.length` + - `ctx.type` - `ctx.host` - `ctx.host=` - `ctx.fresh` @@ -152,7 +153,6 @@ throw err; - `ctx.status` - `ctx.status=` - `ctx.length=` - - `ctx.type` - `ctx.type=` - `ctx.headerSent` - `ctx.redirect()` @@ -160,4 +160,4 @@ throw err; - `ctx.set()` - `ctx.remove()` - `ctx.lastModified=` - - `ctx.etag=` \ No newline at end of file + - `ctx.etag=`