:relfileprefix: ../../../ [#44E4C6F7DDFC4E209A1CDAF44737370AB3CD4907] = Function authority_view::password pass:v,q[Return the password] == Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- template StringToken::result_type password(StringToken&& token) const; ---- == Description pass:v,q[If present, this function returns a] pass:v,q[string representing the password (which] pass:v,q[may be an empty string).] pass:v,q[Otherwise it returns an empty string.] pass:v,q[Any percent-escapes in the string are] pass:v,q[decoded first.] === Example [,cpp] ---- assert( url_view( "http://jane%2Ddoe:pass@example.com" ).password() == "pass" ); ---- === Complexity pass:v,q[Linear in `this->password().size()`.] === Exception Safety pass:v,q[Calls to allocate may throw.] === BNF [,cpp] ---- userinfo = user [ ":" [ password ] ] user = *( unreserved / pct-encoded / sub-delims ) password = *( unreserved / pct-encoded / sub-delims / ":" ) ---- === Specification * link:https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.1[3.2.1. User Information (rfc3986)] == Return Value * `result_type` == Parameters |=== | Name | Type | *token* | `` |===