Discover Packages
github.com/jtolds/go-oauth2http
utils
package
Version:
v0.0.0-...-59fc437
Opens a new window with list of versions in this module.
Published: Aug 8, 2017
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
Documentation
¶
ExactGetHandler is like ExactHandler wrapped with a GetHandler
ExactHandler returns a 404 if someone requests a subresource of the
wrapped resource
GetHandler makes sure the wrapped http.Handler only responds to GETs
LoggingHandler is a simple middleware for logging requests
Shift pulls the first directory out of the path and returns the remainder.
DirMux is an http.Handler that mimics a directory. It mutates an incoming
requests URL.Path to properly namespace handlers. This way a handler can
assume it has the root of its section. If you want the original URL use
req.RequestURI (but don't modify it).
MethodMux is an http.Handler muxer that keys off of the given HTTP request
method
Source Files
¶
Click to show internal directories.
Click to hide internal directories.