Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HostHandler ¶
func New ¶
func New() *HostHandler
func (*HostHandler) Immutable ¶
func (d *HostHandler) Immutable() http.Handler
Immutable creates a immutable copy of this router config.
func (*HostHandler) Remove ¶
func (d *HostHandler) Remove(host string)
func (*HostHandler) ServeHTTP ¶
func (d *HostHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ImmutableHostHandler ¶
type ImmutableHostHandler struct {
HostHandlers map[string]http.Handler
NotFoundHandler http.Handler
}
func (*ImmutableHostHandler) ServeHTTP ¶
func (d *ImmutableHostHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.