doc(context): add status func comment. (#1042)

This commit is contained in:
Eason Lin 2017-07-28 08:50:58 +08:00 committed by Bo-Yi Wu
parent d39ed41ab3
commit 7fafb3f4a1

View File

@ -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)
}