[#A5707BC78B551EF73059BC5ECC501D6B9B207472]

Function params_encoded_base:: buffer

Return the query corresponding to these params

Synopsis

            pct_string_view
buffer() const noexcept;
        

Description

This function returns the query string referenced by the container. The returned string may contain percent escapes.

Example

assert( url_view( "?first=John&last=Doe" ).encoded_params().buffer() == "first=John&last=Doe" );

Complexity

Constant.

Exception Safety

Throws nothing.

BNF

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

Specification

  • Query string (Wikipedia)