stretchr / goweb

A lightweight RESTful web framework for Go
632 stars 61 forks source link

Add more Query, Form parameter helpers to context #17

Closed matryer closed 11 years ago

matryer commented 11 years ago
// AllQueryParams gets the parameters that were present after the ? in the URL.
QueryParams() objects.Map

// QueryValues gets an array of the values for the specified key from the QueryParams.
QueryValues(key string) []string

// QueryValue gets a single value for the specified key from the QueryParams.  If there
// are multiple values (i.e. `?name=Mat&name=Laurie`), the first value is returned.
QueryValue(key string) string