1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 12:57:05 +00:00

add example for #1601

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-08-22 03:21:44 +03:00
parent e41e861c4c
commit a018ba9b0a
12 changed files with 247 additions and 4 deletions

View File

@@ -16,6 +16,18 @@ type RequestParams struct {
memstore.Store
}
// RequestParamsReadOnly is the read-only access type of RequestParams.
type RequestParamsReadOnly interface {
Get(key string) string
GetEntryAt(index int) memstore.Entry
Visit(visitor func(key string, value string))
GetTrim(key string) string
GetEscape(key string) string
GetDecoded(key string) string
} // Note: currently unused.
var _ RequestParamsReadOnly = (*RequestParams)(nil)
// Set inserts a parameter value.
// See `Get` too.
func (r *RequestParams) Set(key, value string) {