forked from mirror/gin
additional clarification
This commit is contained in:
parent
1541a141ee
commit
353fa14750
|
@ -101,7 +101,7 @@ func (c *Context) IsAborted() bool {
|
|||
return c.index >= abortIndex
|
||||
}
|
||||
|
||||
// Abort prevents pending handlers from being called. Note that this will not stop the current execution context.
|
||||
// Abort prevents pending handlers from being called. Note that this will not stop the current handler.
|
||||
// Let's say you have an authorization middleware that validates that the current request is authorized. If the
|
||||
// authorization fails (ex: the password does not match), call Abort to ensure the remaining handlers
|
||||
// for this request are not called.
|
||||
|
|
Loading…
Reference in New Issue