From 80a216500f8ba7d45614096d0ef481cad7d0caea Mon Sep 17 00:00:00 2001 From: TommyDew42 Date: Fri, 28 Jun 2024 23:16:01 +0800 Subject: [PATCH] docs: add writable getter to response docs --- 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