Quellcode durchsuchen

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

Eason Lin vor 8 Jahren
Ursprung
Commit
7fafb3f4a1
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  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)
 }