Constructor
<include/boost/url/params_encoded_view.hpp>
params_encoded_view(core::string_view s);
This function constructs params from a valid query parameter string, which can contain percent escapes. Unlike the parameters in URLs, the string passed here should not start with "?". Upon construction, the view references the character buffer pointed to by `s`. The caller is responsible for ensuring that the lifetime of the buffer extends until it is no longer referenced.
params_encoded_view qp( "first=John&last=Doe" );
return parse_query( s ).value();
this->buffer().data() == s.data()
query-params = [ query-param ] *( "&" query-param )
query-param = key [ "=" value ]
Name | Thrown on |
---|---|
`s` |
contains an invalid query parameter string. |
Name | Description |
---|---|
s | The string to parse. |