:relfileprefix: ../../../
[#61D46943A98D340FEBC3C3EACD3C4FD3C5603676]

= Function url_view_base::encoded_params

pass:v,q[Return the query as a container of parameters]


== Synopsis

Declared in header `</boost/url/url_view_base.hpp#L2048[boost/url/url_view_base.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
xref:boost/urls/params_encoded_view.adoc[params_encoded_view]
encoded_params() const noexcept;
----

== Description

pass:v,q[This function returns a bidirectional] pass:v,q[view of key/value pairs over the query.]
pass:v,q[The returned view references the same]
pass:v,q[underlying character buffer; ownership]
pass:v,q[is not transferred.]
pass:v,q[Strings returned when iterating the]
pass:v,q[range may contain percent escapes.]

=== Example
[,cpp]
----
params_encoded_view pv = url_view( "/sql?id=42&name=jane%2Ddoe&page+size=20" ).encoded_params();
----

=== Complexity
pass:v,q[Constant.]

=== Exception Safety
pass:v,q[Throws nothing.]

=== Specification

* link:https://datatracker.ietf.org/doc/html/rfc3986#section-3.4[3.4. Query (rfc3986)]

=== BNF
[,cpp]
----
query           = *( pchar / "/" / "?" )

query-param     = key [ "=" value ]
query-params    = [ query-param ] *( "&" query-param )
----

=== Specification

* pass:v,q[://en.wikipedia.org/wiki/Query_string"]
pass:v,q[>Query string (Wikipedia)]



== Return Value

* `params_encoded_view` 




