Documentation
¶
Index ¶
- func DiscoverPattern(patterns []string, r *http.Request) (string, error)
- func GetLang(r *http.Request, defaultLanguage string, languages []language.Tag) (language.Tag, error)
- func GetParam(name string, defaultValue string, r *http.Request) string
- func GetParamArray(name string, defaultValue []string, r *http.Request) []string
- func ValidatePattern(pattern string, r *http.Request) (err error)
- type Method
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetParamArray ¶
Types ¶
type Method ¶
type Method string
const ( Connect Method = http.MethodConnect Delete Method = http.MethodDelete Get Method = http.MethodGet Head Method = http.MethodHead Options Method = http.MethodOptions Patch Method = http.MethodPatch Post Method = http.MethodPost Put Method = http.MethodPut Trace Method = http.MethodTrace )
func MethodFromString ¶
Click to show internal directories.
Click to hide internal directories.