Skip to content

URI builder #23

Closed
Closed

Description

@glynos

For example:

namespace bn = boost::network;
bn::uri::uri instance;
instance << bn::uri::scheme("http")
         << bn::uri::authority("cpp-netlib.github.com")
    ;

or:

bn::uri::uri instance;
instance << bn::uri::schemes::http()
         << bn::uri::authority("cpp-netlib.github.com")
    ;

or:

bn::uri::uri instance;
instance << bn::uri::schemes::mailto() << "john.doe@example.com";

or:

bn::uri::uri instance;
instance << bn::uri::schemes::xmpp()
         << bn::uri::xmpp::node("guest")
         << bn::uri::xmpp::domain("example.com")
         << bn::uri::xmpp::resource("support")
    ;

Activity

  1. deanberris commented on Aug 4, 2011

    @deanberris
    Member

    Glyn, do you think this will work for HTTP as well?

  2. glynos commented on Aug 4, 2011

    @glynos
    MemberAuthor

    Yeah, easily. I did some work at home on the 1.0-devel branch where I refactored the URI to make this easier to do. I'll clean it up and push it to github in the coming days.

  3. ghost assigned on Aug 24, 2011
  4. added a commit that references this issue on Jun 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions