Skip to content

Commit

Permalink
规范注释
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-debug110 authored and welkeyever committed Aug 24, 2023
1 parent f36f888 commit 04e848c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/app/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -772,8 +772,8 @@ func (ctx *RequestContext) Reset() {

// Redirect returns an HTTP redirect to the specific location.
// Note that this will not stop the current handler.
// in other words, even if Redirect() is called, the remaining handlers will still be executed and cause unexpected result.
// So it should call Abort to ensure the remaining handlers for this request are not called.
// In other words, even if Redirect() is called, the remaining handlers will still be executed and cause unexpected result.
// So it should call Abort to ensure the remaining handlers of this request will not be called.
//
// ctx.Abort()
// return
Expand All @@ -783,7 +783,7 @@ func (ctx *RequestContext) Redirect(statusCode int, uri []byte) {

// Header is an intelligent shortcut for ctx.Response.Header.Set(key, value).
// It writes a header in the response.
// If value == "", this method removes the header `ctx.Response.Header.Del(key)`
// If value == "", this method removes the header `ctx.Response.Header.Del(key)`.
func (ctx *RequestContext) Header(key, value string) {
if value == "" {
ctx.Response.Header.Del(key)
Expand Down

0 comments on commit 04e848c

Please sign in to comment.