Explorar o código

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

Eason Lin %!s(int64=8) %!d(string=hai) anos
pai
achega
7fafb3f4a1
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      context.go

+ 1 - 0
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)
 }