URI builder API

Bug #1328021 reported by Pete Woods
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
net-cpp
Fix Released
Undecided
Unassigned

Bug Description

An API to assist with building valid URI strings (including URI escaping) would be very useful. Something along the lines of:

    string build_uri(string base, list<string> endpoint, map<string, string> parameters);

so I can do:

    string uri = build_uri("http://mydomain.com", { "specify", "my", "endpoint" }, { { "param1", "hello there" }, { "param2", "banana" } });

which should result in the URI:

    http://mydomain.com/specify/my/endpoint?param1=hello%20there&param2=banana

Related branches

Pete Woods (pete-woods)
Changed in net-cpp:
status: New → In Progress
Pete Woods (pete-woods)
Changed in net-cpp:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.