Documentation ¶
Index ¶
- func Debug(r *http.Request) (details string)
- func Float64(r *http.Request, key interface{}) (value float64, ok bool)
- func GetEnjinID(r *http.Request) (name string)
- func GetHomePath(r *http.Request) (path string)
- func GetRequestID(r *http.Request) (id string)
- func Int(r *http.Request, key interface{}) (value int, ok bool)
- func ParseDomainUrl(r *http.Request) (formal string)
- func QueryFormValue(r *http.Request, key string) (value string)
- func SafeParseForm(r *http.Request) (form map[string]interface{})
- func SafeQueryFormEmail(r *http.Request, key string) (address string)
- func SafeQueryFormHash10(r *http.Request, key string) (shasum string)
- func SafeQueryFormSixDigits(r *http.Request, key string) (digits string)
- func SafeQueryFormValue(r *http.Request, key string) (sanitized string)
- func Set(r *http.Request, keyValuePairs ...interface{}) (m *http.Request)
- func SetHomePath(r *http.Request, path string) (modified *http.Request)
- func String(r *http.Request, key interface{}) (value string, ok bool)
- func Value[T interface{}](r *http.Request, key interface{}) (value T, ok bool)
- type Key
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnjinID ¶ added in v0.5.0
func GetHomePath ¶ added in v0.5.0
func GetRequestID ¶
func ParseDomainUrl ¶ added in v0.5.0
func QueryFormValue ¶ added in v0.5.0
func SafeParseForm ¶ added in v0.5.0
SafeParseForm sanitizes all r.Form values and returns a flat form context.Context with only the first value of each key included (similar to r.FormValue)
func SafeQueryFormEmail ¶ added in v0.5.0
func SafeQueryFormHash10 ¶ added in v0.5.0
func SafeQueryFormSixDigits ¶ added in v0.5.0
func SafeQueryFormValue ¶ added in v0.5.0
func Set ¶ added in v0.5.0
Set is a convenience wrapper for cloning the given request with one or more context key+value pairs added, will panic if the number of key+value pairs is not balanced (even)
func SetHomePath ¶ added in v0.5.0
Types ¶
Click to show internal directories.
Click to hide internal directories.