updates library for new URI api

This commit is contained in:
Peter Thorson
2011-11-29 09:38:32 -06:00
parent 0e71fae008
commit cb0222c06f
5 changed files with 52 additions and 33 deletions

View File

@@ -71,6 +71,12 @@ uri::uri(bool secure, const std::string& host, uint16_t port, const std::string&
m_port(port),
m_resource(resource == "" ? "/" : resource) {}
uri::uri(bool secure, const std::string& host, const std::string& resource)
: m_secure(secure),
m_host(host),
m_port(m_secure ? DEFAULT_SECURE_PORT : DEFAULT_PORT),
m_resource(resource == "" ? "/" : resource) {}
uri::uri(bool secure,
const std::string& host,
const std::string& port,