IsAborted returns true if the current context was aborted.
()
| 60 | |
| 61 | // IsAborted returns true if the current context was aborted. |
| 62 | func (c *Context) IsAborted() bool { |
| 63 | return c.Index >= AbortIndex |
| 64 | } |
| 65 | |
| 66 | // Abort prevents pending Handlers from being called. Note that this will not stop the current handler. |
| 67 | // Let's say you have an authorization middleware that validates that the current request is authorized. |
nothing calls this directly
no outgoing calls
no test coverage detected