boost::urls::url_base::normalize_path
Normalize the URL path
Synopsis
Declared in <boost/url/url_base.hpp>
url_base&
normalize_path();
Description
Applies Syntax‐based normalization to the URL path.
Percent‐encoding triplets are normalized to uppercase letters. Percent‐encoded octets that correspond to unreserved characters are decoded. Redundant path‐segments "." and ".." are removed.
assert( url( "http://www.example.com/a/b/../c" ).normalize_path().buffer() == "http://www.example.com/a/c" );
assert( url( "http://www.example.com/a/./b" ).normalize_path().buffer() == "http://www.example.com/a/b" );
assert( url( "http://www.example.com/%63ss" ).normalize_path().buffer() == "http://www.example.com/css" );
Return Value
*this
Created with MrDocs