boost::urls::static_url::normalize_query

Normalize the URL query

Synopsis

Declared in <boost/url/static_url.hpp>

static_url&
normalize_query();

Description

Applies Syntax‐based normalization to the URL query.

Percent‐encoding triplets are normalized to uppercase letters. Percent‐encoded octets that correspond to unreserved characters are decoded.

assert( url( "http://www.example.com?a=%62" ).normalize_query().buffer() == "http://www.example.com?a=b" );

Exception Safety

Strong guarantee. Calls to allocate may throw.

Return Value

*this

Created with MrDocs