summaryrefslogtreecommitdiff
path: root/src/url.hh
diff options
context:
space:
mode:
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;