summaryrefslogtreecommitdiff
path: root/src/url.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-03-01 22:54:09 +0100
committerJoel Klinghed <the_jk@yahoo.com>2017-03-01 22:54:09 +0100
commit719d90a40e83e870be19f8d46cc55caed618aa35 (patch)
tree10bc226c44aff6cfa3c53e5d837a32720c9bf836 /src/url.hh
parent537ed164ae1875a8d38e06dbc214ef4f91bc4642 (diff)
Add support for CONNECT
Diffstat (limited to 'src/url.hh')
-rw-r--r--src/url.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/url.hh b/src/url.hh
index d3b69b7..77027d2 100644
--- a/src/url.hh
+++ b/src/url.hh
@@ -12,6 +12,8 @@ public:
virtual ~Url() {}
static Url* parse(std::string const& url, Url const* base = nullptr);
+ static bool parse_authority(std::string const& str,
+ std::string* host, uint16_t* port);
virtual Url* copy() const = 0;