Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler returns a xhttp.Handler which sole purpose is to remove a given prefix from the http request URL path. If the prefix does not exist, a 404 HTTP error is sent.
func NewHandler ¶
NewHandler returns a request Handler whose task is simply to mutate the request object by stripping it from a given prefix.
Click to show internal directories.
Click to hide internal directories.