mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-17 05:42:09 +08:00
Added custom http status code to context's render
This commit is contained in:
parent
0709ae3b10
commit
e0ca0b16ab
@ -39,6 +39,8 @@ const (
|
||||
|
||||
const abortIndex int8 = math.MaxInt8 / 2
|
||||
|
||||
const httpStatusClientClosedRequest = 499
|
||||
|
||||
// Context is the most important part of gin. It allows us to pass variables between middleware,
|
||||
// manage the flow, validate the JSON of a request and render a JSON response for example.
|
||||
type Context struct {
|
||||
|
Loading…
x
Reference in New Issue
Block a user