RequestHead.Query property
The query string as name and value pairs, in the order they appear in the URL.
public IReadOnlyList<KeyValuePair<string, string>> Query { get; }
Remarks
It is a list, not a dictionary, because a name can appear more than once. A name with no = has an empty value. Names and values are as the client sent them: they are not percent-decoded, and a + is not turned into a space.
Examples
The value of name, or null when the query has none:
string? name = request.Query.FirstOrDefault(pair => pair.Key == "name").Value;
See Also
- class RequestHead
- namespace Isoplane