:relfileprefix: ../../../ [#13B7CE169BB4C96069ED9AA62CA67CF2255EB610] = Function authority_view::userinfo pass:v,q[Return the userinfo] == Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- template StringToken::result_type userinfo(StringToken&& token) const; ---- == Description pass:v,q[If present, this function returns a] pass:v,q[string representing the userinfo (which] pass:v,q[may be empty).] 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" ).userinfo() == "jane-doe:pass" ); ---- === Complexity pass:v,q[Linear in `this->userinfo().size()`.] === Exception Safety pass:v,q[Calls to allocate may throw.] === BNF [,cpp] ---- userinfo = user [ ":" [ password ] ] authority = [ userinfo "@" ] host [ ":" port ] ---- === 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* | `` |===