Documentation
¶
Overview ¶
Package handlers 用于处理节点下与处理函数相关的逻辑
Index ¶
- func Map() map[int16]string
- func Methods() []string
- 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 ¶
This section is empty.
Functions ¶
Types ¶
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
Handlers 用于表示某节点下各个请求方法对应的处理函数。
Click to show internal directories.
Click to hide internal directories.