Documentation
¶
Overview ¶
Package handlers 用于处理节点下与处理函数相关的逻辑
Index ¶
- Variables
- type Handlers
- func (hs *Handlers) Add(h http.Handler, methods ...string) error
- func (hs *Handlers) Handler(method string) http.Handler
- func (hs *Handlers) Len() int
- func (hs *Handlers) Methods(ignoreHead, ignoreOptions bool) []string
- func (hs *Handlers) Options() string
- func (hs *Handlers) Remove(methods ...string) bool
- func (hs *Handlers) SetAllow(optionsAllow string)
Constants ¶
This section is empty.
Variables ¶
View Source
var Methods = []string{ http.MethodGet, http.MethodPost, http.MethodDelete, http.MethodPut, http.MethodPatch, http.MethodConnect, http.MethodTrace, http.MethodOptions, http.MethodHead, }
Methods 所有支持请求方法
Functions ¶
This section is empty.
Types ¶
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
Handlers 用于表示某节点下各个请求方法对应的处理函数
Click to show internal directories.
Click to hide internal directories.