Documentation
¶
Index ¶
- func NewRequest(options Options) inter.Request
- type Kernel
- type Options
- type Request
- func (r Request) App() inter.App
- func (r Request) Content() string
- func (r Request) Header(key string) string
- func (r Request) Headers() http.Header
- func (r Request) Method() string
- func (r Request) QueryValue(key string) inter.Value
- func (r Request) QueryValues(key string) []inter.Value
- func (r *Request) SetApp(app inter.App) inter.Request
- func (r *Request) SetContent(content string) inter.Request
- func (r *Request) SetUrlValues(vars map[string]string) inter.Request
- func (r Request) Source() http.Request
- func (r Request) UrlValue(key string) inter.Value
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRequest ¶
Types ¶
type Values ¶
Values maps a string key to a list of values. It is typically used for query parameters and form values. Unlike in the http.Header map, the keys in a Values map are case-sensitive.
func NewUrlByMultiValues ¶
func NewUrlByValues ¶
func (Values) Add ¶
Add adds the value to key. It appends to any existing values associated with key.
Click to show internal directories.
Click to hide internal directories.