Uris

From reSIProcate
Jump to: navigation, search

Uri represents URIs.

A Uri can be created from a string.

Uri bob("bob@example.com");

A Uri can be constructed piecemeal.

Uri bob;
bob.user() = "bob";
bob.host() = "example.com";

A Uri can have parameters.

Uri bob;
bob.param(p_lr);
bob.param(p_ttl) = 3600;

Uris are also the uri() portion of NameAddrs. See here for a details on Uri accessors.