std :: encoding::url
Struct std::QueryParams
struct QueryParams {
struct Vec<struct UrlQueryPair> pairs;
}An ordered multi-map of decoded key/value pairs — the parsed form of "a=1&b=two%20words&a=3" (a query string without its '?', or an application/x-www-form-urlencoded request body). Keys may repeat; get() returns the first. Lookups are case-sensitive, like URLSearchParams.
Fields
Methods
Parses 'qs' (a leading '?' is skipped). Empty segments ("a=1&&b=2") are dropped; a segment without '=' is a key with an empty value.
parse() over raw bytes (e.g. a request body, which is not NUL-terminated in general).
The first value for 'key', or null if absent. The reference aliases this object's storage: valid until the next mutation or free().
get() with a fallback for an absent key.
How many pairs have this key, and the n-th of them (0-based; null past the end).
i-th pair in order (null past the end).
Adds a pair at the end (keeps existing ones with the same key).
Replaces the first pair with this key and removes the others, or appends one if there was none.
Removes every pair with this key; returns how many there were.
Stable sort by key (byte order), as URLSearchParams.sort().
Serializes back to "k=v&k2=v2" with form_encode on both halves (no leading '?').
= drop()