()
| 566 | } |
| 567 | |
| 568 | func (c *Context) initQueryCache() { |
| 569 | if c.queryCache == nil { |
| 570 | if c.Request != nil && c.Request.URL != nil { |
| 571 | c.queryCache = c.Request.URL.Query() |
| 572 | } else { |
| 573 | c.queryCache = url.Values{} |
| 574 | } |
| 575 | } |
| 576 | } |
| 577 | |
| 578 | // GetQueryArray returns a slice of strings for a given query key, plus |
| 579 | // a boolean value whether at least one value exists for the given key. |