Documentation ¶
Index ¶
- Constants
- Variables
- func ForbiddenHandler(context *gin.Context)
- func MethodNotAllowedHandler(context *gin.Context)
- func PageNotFoundHandler(context *gin.Context)
- func SetForbiddenResponse(response interface{})
- func SetMethodNotAllowedResponse(response interface{})
- func SetPageNotFoundResponse(response interface{})
- type Context
- type HandlerFunc
Constants ¶
View Source
const ( MethodGet = "Get" MethodHead = "Head" MethodPost = "Post" MethodPut = "Put" MethodPatch = "Patch" MethodDelete = "Delete" MethodConnect = "Connect" MethodOptions = "Options" MethodTrace = "Trace" )
Variables ¶
View Source
var RequestMethods = [...]string{ MethodGet, MethodHead, MethodPost, MethodPut, MethodPatch, MethodDelete, MethodConnect, MethodOptions, MethodTrace, }
Functions ¶
func ForbiddenHandler ¶
func MethodNotAllowedHandler ¶
func PageNotFoundHandler ¶
func SetForbiddenResponse ¶
func SetForbiddenResponse(response interface{})
func SetMethodNotAllowedResponse ¶
func SetMethodNotAllowedResponse(response interface{})
func SetPageNotFoundResponse ¶
func SetPageNotFoundResponse(response interface{})
Types ¶
type HandlerFunc ¶
type HandlerFunc func(*Context)
Click to show internal directories.
Click to hide internal directories.