Versions in this module Expand all Collapse all v0 v0.5.3 Dec 8, 2023 v0.5.2 Nov 26, 2023 Changes in this version + const PathVariablesAttribute + func SetCookie(w http.ResponseWriter, cookie *Cookie) + type Context interface + Abort func() + IsAborted func() bool + IsCompleted func() bool + Request func() Request + Response func() Response + With func(request Request, response Response) Context + WithRequest func(request Request) Context + WithResponse func(response Response) Context + WithValue func(key, val any) Context + type Cookie struct + Domain string + Expires time.Time + HttpOnly bool + MaxAge int + Name string + Path string + Raw string + RawExpires string + SameSite SameSite + Secure bool + Unparsed []string + Value string + func (c *Cookie) String() string + func (c *Cookie) Valid() error + type ErrorHandler interface + HandleError func(ctx Context, err error) + type Handler interface + Invoke func(ctx Context) (any, error) + func Handle(fn func(ctx Context) error) Handler + type HandlerChain []HandlerFunction + type HandlerFunction func(ctx Context, next RequestDelegate) error + type HandlerWrapper struct + func WrapHandler(handler Handler) *HandlerWrapper + func (w *HandlerWrapper) Invoke(ctx Context, next RequestDelegate) error + func (w *HandlerWrapper) SetReturnValueHandlers(handlers []ReturnValueHandler) + func (w *HandlerWrapper) Unwrap() Handler + type Method string + const MethodConnect + const MethodDelete + const MethodGet + const MethodHead + const MethodOptions + const MethodPatch + const MethodPost + const MethodPut + const MethodTrace + func (m Method) IntValue() int + type NotFoundError struct + func (e NotFoundError) Error() string + type PathVariable struct + Name string + Value string + type PathVariables struct + func (p *PathVariables) Put(name string, value string) + func (p *PathVariables) Value(name string) (string, bool) + type Request interface + Context func() Context + Cookie func(name string) (*Cookie, bool) + Cookies func() []*Cookie + Header func(name string) (string, bool) + HeaderNames func() []string + Headers func(name string) []string + IsSecure func() bool + Method func() Method + Path func() string + QueryParameter func(name string) (string, bool) + QueryParameterNames func() []string + QueryParameters func(name string) []string + QueryString func() string + Reader func() io.Reader + Scheme func() string + WithReader func(reader io.Reader) Request + type RequestDelegate interface + Invoke func(ctx Context) + type Response interface + AddCookie func(cookie *Cookie) + AddHeader func(name string, value string) + CharacterEncoding func() string + ContentLength func() int + ContentType func() string + Context func() Context + DeleteHeader func(name string) + Flush func() + Header func(name string) string + HeaderNames func() []string + Headers func(name string) []string + IsCommitted func() bool + Reset func() + SetCharacterEncoding func(charset string) + SetContentLength func(len int) + SetContentType func(contentType string) + SetHeader func(name string, value string) + SetStatus func(status Status) + Status func() Status + WithWriter func(writer io.Writer) Response + Writer func() io.Writer + type ReturnValueHandler interface + HandleReturnValue func(ctx Context, returnValue any) error + SupportsReturnType func(returnType reflect.Type) bool + type SameSite int + const SameSiteDefaultMode + const SameSiteLaxMode + const SameSiteNoneMode + const SameSiteStrictMode + type Status int + const StatusAccepted + const StatusAlreadyReported + const StatusBadGateway + const StatusBadRequest + const StatusConflict + const StatusContinue + const StatusCreated + const StatusEarlyHints + const StatusExpectationFailed + const StatusFailedDependency + const StatusForbidden + const StatusFound + const StatusGatewayTimeout + const StatusGone + const StatusHTTPVersionNotSupported + const StatusIMUsed + const StatusInsufficientStorage + const StatusInternalServerError + const StatusLengthRequired + const StatusLocked + const StatusLoopDetected + const StatusMethodNotAllowed + const StatusMisdirectedRequest + const StatusMovedPermanently + const StatusMultiStatus + const StatusMultipleChoices + const StatusNetworkAuthenticationRequired + const StatusNoContent + const StatusNonAuthoritativeInfo + const StatusNotAcceptable + const StatusNotExtended + const StatusNotFound + const StatusNotImplemented + const StatusNotModified + const StatusOK + const StatusPartialContent + const StatusPaymentRequired + const StatusPermanentRedirect + const StatusPreconditionFailed + const StatusPreconditionRequired + const StatusProcessing + const StatusProxyAuthRequired + const StatusRequestEntityTooLarge + const StatusRequestHeaderFieldsTooLarge + const StatusRequestTimeout + const StatusRequestURITooLong + const StatusRequestedRangeNotSatisfiable + const StatusResetContent + const StatusSeeOther + const StatusServiceUnavailable + const StatusSwitchingProtocols + const StatusTeapot + const StatusTemporaryRedirect + const StatusTooEarly + const StatusTooManyRequests + const StatusUnauthorized + const StatusUnavailableForLegalReasons + const StatusUnprocessableEntity + const StatusUnsupportedMediaType + const StatusUpgradeRequired + const StatusUseProxy + const StatusVariantAlsoNegotiates + func (code Status) String() string