Added custom http status code to context's render

This commit is contained in:
eeonevision 2019-11-25 11:35:11 +03:00
parent 0709ae3b10
commit e0ca0b16ab

View File

@ -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 {