From 87774d8981ae7a079492d8949e205065ba72a8e4 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Thu, 16 Mar 2017 23:28:09 +0100 Subject: Add basic console monitor and implement monitor support --- src/http.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/http.cc') diff --git a/src/http.cc b/src/http.cc index c043c87..26911cb 100644 --- a/src/http.cc +++ b/src/http.cc @@ -377,10 +377,16 @@ public: bool method_equal(std::string const& method) const override { return method.compare(0, method.size(), data_, method_end_) == 0; } + std::string url() const override { return make_string(data_, url_start_, url_end_); } + bool url_equal(std::string const& url) const override { + return url.compare(0, url.size(), + data_ + url_start_, url_end_ - url_start_) == 0; + } + ParseResult parse() { good_ = false; proto_end_ = find_newline(0, &content_start_); -- cgit v1.2.3-70-g09d2