Merge 5a78885058f5b2f83cd5d8b4a85e1da9b1a9f4a5 into 077a2f39c85700ba0823f85ed29cec0c8f2cbdfc

This commit is contained in:
coder2z 2025-08-19 17:49:32 +01:00 committed by GitHub
commit 41510b488c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -555,6 +555,12 @@ func (c *Context) initQueryCache() {
}
}
// SetQuery Modify or add to the cached Query data
func (c *Context) SetQuery(key,values string) {
c.initQueryCache()
c.queryCache.Set(key,values)
}
// GetQueryArray returns a slice of strings for a given query key, plus
// a boolean value whether at least one value exists for the given key.
func (c *Context) GetQueryArray(key string) (values []string, ok bool) {
@ -628,6 +634,12 @@ func (c *Context) initFormCache() {
}
}
// SetForm Modify or add to the cached Form data
func (c *Context) SetForm(key,values string) {
c.initFormCache()
c.formCache.Set(key,values)
}
// GetPostFormArray returns a slice of strings for a given form key, plus
// a boolean value whether at least one value exists for the given key.
func (c *Context) GetPostFormArray(key string) (values []string, ok bool) {