aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-10-20 13:52:04 +0200
committerStefan Boberg <[email protected]>2023-10-20 13:52:04 +0200
commitd900c367825ff09f8919ce32d7fd368ebd004058 (patch)
tree2a189f2e15a754cb223703b006667c8cb1cf40d7 /src
parentDon't prune block locations due to missing blocks a startup (#487) (diff)
downloadzen-d900c367825ff09f8919ce32d7fd368ebd004058.tar.xz
zen-d900c367825ff09f8919ce32d7fd368ebd004058.zip
added HttpClient::GetBaseUri
mostly useful when reporting errors
Diffstat (limited to 'src')
-rw-r--r--src/zenhttp/include/zenhttp/httpclient.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zenhttp/include/zenhttp/httpclient.h b/src/zenhttp/include/zenhttp/httpclient.h
index 0663abc43..ae1e2bf20 100644
--- a/src/zenhttp/include/zenhttp/httpclient.h
+++ b/src/zenhttp/include/zenhttp/httpclient.h
@@ -148,7 +148,8 @@ public:
return std::make_pair("Accept", MapContentTypeToString(ContentType));
}
- spdlog::logger& Logger() { return m_Log; }
+ spdlog::logger& Logger() { return m_Log; }
+ std::string_view GetBaseUri() const { return m_BaseUri; }
private:
struct Impl;