Documentation
¶
Index ¶
- func AllowCORS(w http.ResponseWriter, r *http.Request, allowMethods []string, ...)
- func BearerAuth(r *http.Request) (string, bool)
- func Cache(w http.ResponseWriter, duration time.Duration)
- func IsFormData(contentType string) bool
- func IsJSON(contentType string) bool
- func NoCache(w http.ResponseWriter)
- func RedirectFragment(w http.ResponseWriter, r *http.Request, url string, params url.Values)
- func RedirectQuery(w http.ResponseWriter, r *http.Request, url string, params url.Values)
- type Timing
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFormData ¶ added in v0.8.0
func NoCache ¶
func NoCache(w http.ResponseWriter)
func RedirectFragment ¶
func RedirectQuery ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.