Versions in this module Expand all Collapse all v1 v1.1.0 Nov 7, 2021 Changes in this version + func GZIPCompressMiddleware(next http.Handler) http.Handler v1.0.0 Nov 7, 2021 Changes in this version + const CharSet + const MethodDelete + const MethodGet + const MethodHead + const MethodOptions + const MethodPatch + const MethodPost + const MethodPut + var Cors *cors.Cors + var DefaultCORSOption = cors.Options + func ContextSetterMiddleware(next http.Handler) http.Handler + func GetRequestID(r *http.Request) string + func InternalServerError(w http.ResponseWriter, err error) + func MakeRequestID() string + func NewCORSMiddleware(options cors.Options) func(next http.Handler) http.Handler + func WriteJson(w http.ResponseWriter, code int, data interface{}) + func WriteString(w http.ResponseWriter, code int, text string) + type ContextKey string + const RequestID + type HyperMux struct + func NewHyperMux() *HyperMux + func (m *HyperMux) AddRoute(pattern, method string, hFunc http.HandlerFunc) + func (m *HyperMux) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (m *HyperMux) UseMiddleware(mw func(next http.Handler) http.Handler)