doc(context): add status func comment.

This commit is contained in:
Eason Lin 2017-07-28 00:51:19 +08:00
parent d39ed41ab3
commit 719a906ad3

View File

@ -561,6 +561,7 @@ func bodyAllowedForStatus(status int) bool {
return true return true
} }
// Status sets the HTTP response code.
func (c *Context) Status(code int) { func (c *Context) Status(code int) {
c.writermem.WriteHeader(code) c.writermem.WriteHeader(code)
} }