Skip to main content

parse_qsl

Function parse_qsl 

Source
pub fn parse_qsl(
    qs: &str,
    keep_blank_values: bool,
    strict_parsing: bool,
    max_num_fields: Option<usize>,
    separator: &str,
) -> Result<Vec<(String, String)>, UrlError>
Expand description

Parse a query string into a list of (name, value) pairs. Port of parse_qsl.

keep_blank_values keeps fields whose value is empty; strict_parsing errors on a field with no =; max_num_fields (if set) caps the number of fields. separator is the field separator (Python defaults to "&"). Values are decoded with unquote_plus (UTF-8, errors='replace').