From 719a906ad3ef37f630687392d915808a7ae50593 Mon Sep 17 00:00:00 2001 From: Eason Lin Date: Fri, 28 Jul 2017 00:51:19 +0800 Subject: [PATCH] doc(context): add status func comment. --- context.go | 1 + 1 file changed, 1 insertion(+) diff --git a/context.go b/context.go index 87aa1bea..35ca8d2e 100644 --- a/context.go +++ b/context.go @@ -561,6 +561,7 @@ func bodyAllowedForStatus(status int) bool { return true } +// Status sets the HTTP response code. func (c *Context) Status(code int) { c.writermem.WriteHeader(code) }