MCPcopy Create free account
hub / github.com/kataras/iris / GetStatusCode

Method GetStatusCode

context/context.go:1484–1486  ·  view source on GitHub ↗

GetStatusCode returns the current status code of the response. Look StatusCode too.

()

Source from the content-addressed store, hash-verified

1482// GetStatusCode returns the current status code of the response.
1483// Look StatusCode too.
1484func (ctx *Context) GetStatusCode() int {
1485 return ctx.writer.StatusCode()
1486}
1487
1488// +------------------------------------------------------------+
1489// | Various Request and Post Data |

Callers 15

EndRequestMethod · 0.95
RedirectMethod · 0.95
ProblemMethod · 0.95
IsRecoveredMethod · 0.95
MakeHandlerFunction · 0.80
SetupErrorHandlersMethod · 0.80
onErrorCodeFunction · 0.80
handleErrorsFunction · 0.80
ServeHTTPMethod · 0.80
HandlerMethod · 0.80
afterMethod · 0.80

Calls 1

StatusCodeMethod · 0.65

Tested by 3

authDependencyFunction · 0.64
HandleHTTPErrorMethod · 0.64
TestSwitchHostsRedirectFunction · 0.64