providers/http: Add queryEscape, queryUnescape
This commit is contained in:
parent
adf77c962d
commit
88a364a155
@ -21,11 +21,13 @@ func (this *Provider) Package () string {
|
|||||||
// FuncMap fulfills the step.FuncProvider interface.
|
// FuncMap fulfills the step.FuncProvider interface.
|
||||||
func (this *Provider) FuncMap () template.FuncMap {
|
func (this *Provider) FuncMap () template.FuncMap {
|
||||||
return template.FuncMap {
|
return template.FuncMap {
|
||||||
"statusText": http.StatusText,
|
"statusText": http.StatusText,
|
||||||
"parseQuery": funcParseQuery,
|
"parseQuery": funcParseQuery,
|
||||||
"parseForm": funcParseForm,
|
"parseForm": funcParseForm,
|
||||||
"error": funcError,
|
"error": funcError,
|
||||||
"redirect": funcRedirect,
|
"redirect": funcRedirect,
|
||||||
|
"queryEscape": url.QueryEscape,
|
||||||
|
"queryUnescape": url.QueryUnescape,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user