Просмотр исходного кода

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

Eason Lin 8 лет назад
Родитель
Сommit
7fafb3f4a1
1 измененных файлов с 1 добавлено и 0 удалено
  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)
 }