IsAborted returns true if the current context was aborted.
()
| 197 | |
| 198 | // IsAborted returns true if the current context was aborted. |
| 199 | func (c *Context) IsAborted() bool { |
| 200 | return c.index >= abortIndex |
| 201 | } |
| 202 | |
| 203 | // Abort prevents pending handlers from being called. Note that this will not stop the current handler. |
| 204 | // Let's say you have an authorization middleware that validates that the current request is authorized. |
no outgoing calls