Merge lp://staging/~pete-woods/net-cpp/uri-builder into lp://staging/net-cpp
Proposed by
Pete Woods
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Thomas Voß | ||||
Approved revision: | 43 | ||||
Merged at revision: | 38 | ||||
Proposed branch: | lp://staging/~pete-woods/net-cpp/uri-builder | ||||
Merge into: | lp://staging/net-cpp | ||||
Diff against target: |
369 lines (+230/-14) 10 files modified
CMakeLists.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) |
||||
To merge this branch: | bzr merge lp://staging/~pete-woods/net-cpp/uri-builder | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Thomas Voß (community) | Approve | ||
Ubuntu Phablet Team | Pending | ||
Review via email: mp+222614@code.staging.launchpad.net |
Commit message
Add URI building API
Description of the change
Add URI building API
To post a comment you must log in.
Thanks for getting started on this. I have a few comments:
(1.) I would propose to have a
struct Uri
{
struct Endpoint
{
};
struct Parameters
{
};
};
Where Endpoint and Parameters could just be appropriate typedefs. We could put it into core/net/uri.h, being ready for consumption by core/net/ http/client. h.
(2.) We should provide a default implementation of build_uri, that can be reused by any implementation that provides implementations for url_escape.
(3.) There are some manual uri setups in the test-cases. I would appreciate it if you could change those to leverage the new interface.