MCPcopy
hub / github.com/gin-gonic/gin / IsAborted

Method IsAborted

context.go:199–201  ·  view source on GitHub ↗

IsAborted returns true if the current context was aborted.

()

Source from the content-addressed store, hash-verified

197
198// IsAborted returns true if the current context was aborted.
199func (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.

Calls

no outgoing calls