Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func (*Router) Default ¶
Default sets the default router to route requests, Host header value of which aren't matched. Note: only requests with 0 or 1 Host header values may be passed into the default router. If there are more than 1 value, the request will be refused
func (*Router) Host ¶
Host adds a new virtual router. If 0.0.0.0 is passed, the router will be set as a default one
func (*Router) Initialize ¶
Click to show internal directories.
Click to hide internal directories.