From cfdb77f34d6f5aa4110c5425e78565165d51c0a7 Mon Sep 17 00:00:00 2001 From: Tommy Dew Date: Fri, 28 Jun 2024 23:26:17 +0800 Subject: [PATCH] docs: Add writable getter to the response doc (#1832) Fixes #1680 --- docs/api/response.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/api/response.md b/docs/api/response.md index e75b30152..1ac65cc8e 100644 --- a/docs/api/response.md +++ b/docs/api/response.md @@ -351,3 +351,7 @@ ctx.response.etag = crypto.createHash('md5').update(ctx.body).digest('hex'); ### response.flushHeaders() Flush any set headers, and begin the body. + +### response.writable + + A boolean that indicates whether the response is still writable