URI builder API
Bug #1328021 reported by
Pete Woods
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://
which should result in the URI:
http://
Related branches
lp://staging/~pete-woods/net-cpp/uri-builder
- Thomas Voß (community): Approve
- Ubuntu Phablet Team: Pending requested
-
Diff: 369 lines (+230/-14)10 files modifiedCMakeLists.txt (+1/-1)
debian/changelog (+7/-0)
debian/libnet-cpp1.symbols (+2/-0)
include/core/net/http/client.h (+5/-0)
include/core/net/uri.h (+94/-0)
src/CMakeLists.txt (+1/-0)
src/core/net/http/client.cpp (+38/-1)
src/core/net/http/impl/curl/client.h (+1/-0)
src/core/net/uri.cpp (+27/-0)
tests/http_client_test.cpp (+54/-12)
Changed in net-cpp: | |
status: | New → In Progress |
Changed in net-cpp: | |
status: | In Progress → Fix Released |
To post a comment you must log in.