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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user