http/Query

module methods:

value methods:

:

Create a http/Query value.

(http/Query :) -> query

get

Gets the first value associated with the given key. If there are no values associated with the key, returns the empty string. To access multiple values, use gets.

(query get key(string)) -> string

gets

Gets the values associated with the given key. If there are no values associated with the key, returns []. To access the first value, use get.

(query get key(string)) -> string

set

Sets the key to val. It replaces any existing values. Returns nil.

(query set key(string) val(string)) -> nil

add

Adds the val to key. It appends to any existing values associated with key. Returns nil.

(query add key(string) val(string)) -> nil

delete

Deletes the values associated with key. Returns nil.

(query delete key(string)) -> nil

encode

Encodes the values into “URL encoded” form ("bar=baz&foo=quux") sorted by key.

(query encode) -> string