Documentation ¶
Index ¶
- func JSON(w http.ResponseWriter, res any) error
- func MarshalJSON(v any) ([]byte, error)
- func Must(m bunrouter.H, err error) any
- func UnmarshalJSON(w http.ResponseWriter, req bunrouter.Request, dst any, maxBytes int64) error
- type DecompressHandler
- type PanicHandler
- type SubpathHandler
- type TraceparentHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalJSON ¶
func UnmarshalJSON ¶
Types ¶
type DecompressHandler ¶
func (DecompressHandler) ServeHTTP ¶
func (h DecompressHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type PanicHandler ¶
func (PanicHandler) ServeHTTP ¶
func (h PanicHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type SubpathHandler ¶
type SubpathHandler struct {
// contains filtered or unexported fields
}
func NewSubpathHandler ¶
func NewSubpathHandler(next http.Handler, subpath string) *SubpathHandler
func (*SubpathHandler) ServeHTTP ¶
func (h *SubpathHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type TraceparentHandler ¶
type TraceparentHandler struct {
// contains filtered or unexported fields
}
func NewTraceparentHandler ¶
func NewTraceparentHandler(next http.Handler) *TraceparentHandler
func (*TraceparentHandler) ServeHTTP ¶
func (h *TraceparentHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.