Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder allows the construction of an http.Handler that is able to route based on path and host.
func (*Builder) Build ¶
Build constructs an http.Handler that can be used for serving requests. Note that the Builder can no longer be used after Build is called.
func (*Builder) ForAnyHost ¶
ForAnyHost gets the PathMux that matches a request to any host.
type PathMux ¶
type PathMux struct {
// contains filtered or unexported fields
}
PathMux is a mux that routes only on request path.
func (*PathMux) Handle ¶
Handle associates a new handler to a path. Paths are matched consistent with net.ServeMux in the go standard library, except that host routes are not supported.
func (*PathMux) HandleFunc ¶
HandleFunc is identical to Handle but accepts a function instead of a Handler.
Click to show internal directories.
Click to hide internal directories.