Documentation
¶
Overview ¶
Package http extends the http package in the stdlib.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerAcceptor ¶
type HandlerAcceptor interface {
// Handle registers the handler for the given pattern.
// If a handler already exists for pattern, Handle panics.
Handle(pattern string, handler http.Handler)
// HandleFunc registers the handler function for the given pattern.
HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
}
HandlerAcceptor accepts an http.Handler or http.HandlerFunc and registers it for a pattern.
Click to show internal directories.
Click to hide internal directories.