Documentation ¶
Overview ¶
Package httpctx provides a context-aware HTTP handler adaptor
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
Handler is a request handler with an added context
func StripPrefix ¶
StripPrefix strips a prefix from the request URL
type HandlerFunc ¶
A HandlerFunc is an adaptor to turn a function in to a Handler
func (HandlerFunc) ServeHTTPContext ¶
func (h HandlerFunc) ServeHTTPContext( ctx context.Context, rw http.ResponseWriter, req *http.Request, )
ServeHTTPContext calls the underlying handler function
Click to show internal directories.
Click to hide internal directories.