Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var METHOD_COLORS = map[string][]color.Attribute{ http.MethodGet: {color.BgGreen, color.FgBlack}, http.MethodPost: {color.BgYellow, color.FgBlack}, http.MethodPut: {color.BgBlue, color.FgBlack}, http.MethodPatch: {color.BgCyan, color.FgBlack}, http.MethodDelete: {color.BgRed, color.FgBlack}, }
Functions ¶
This section is empty.
Types ¶
type Handler ¶
func NewHandler ¶
func NewHandler(handler http.Handler, options ...HanlderOptions) Handler
type HanlderOptions ¶ added in v1.1.0
type HanlderOptions func(h *Handler)
func PathSize ¶ added in v1.1.0
func PathSize(size int) HanlderOptions
type ResponseWriter ¶
type ResponseWriter struct { http.ResponseWriter // contains filtered or unexported fields }
func NewResponseWriter ¶
func NewResponseWriter(w http.ResponseWriter) *ResponseWriter
func (*ResponseWriter) WriteHeader ¶
func (w *ResponseWriter) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.