Documentation ¶
Index ¶
Constants ¶
View Source
const (
AddressFromEnvironment = ""
)
Variables ¶
View Source
var (
ServerAddress = "127.0.0.1:0"
)
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) AfterHandle ¶
func (h *Handler) AfterHandle(path string, method string, f http.HandlerFunc)
添加后置Handle
func (*Handler) BeforeHandle ¶
func (h *Handler) BeforeHandle(path string, method string, f http.HandlerFunc)
添加前置Handle
Click to show internal directories.
Click to hide internal directories.