aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-05-12 14:13:00 +0200
committerGitHub <[email protected]>2023-05-12 14:13:00 +0200
commit9b74445504fb20401c174241b93c99bf765b43ce (patch)
tree9e9ce2abe0f17c9ec327fb8fe3ecba4bea35f1c0 /src/zenhttp/include
parentbetter logging/exception when reading file in IoBuffer::Materialize fails (#294) (diff)
downloadzen-9b74445504fb20401c174241b93c99bf765b43ce.tar.xz
zen-9b74445504fb20401c174241b93c99bf765b43ce.zip
implemented structured cache logging (#296)
may be used as audit trail to help analyse potential cache pollution/corruption * also added common header with timestamp to all known log targets * made `Oid::operator bool` explicit to avoid logging/text format mishaps * made `HttpClient::operator bool` explicit
Diffstat (limited to 'src/zenhttp/include')
-rw-r--r--src/zenhttp/include/zenhttp/httpclient.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zenhttp/include/zenhttp/httpclient.h b/src/zenhttp/include/zenhttp/httpclient.h
index 8ec29d548..edf3bf773 100644
--- a/src/zenhttp/include/zenhttp/httpclient.h
+++ b/src/zenhttp/include/zenhttp/httpclient.h
@@ -35,8 +35,8 @@ public:
// validate that the content type or content itself makes sense as a string.
std::string_view AsText();
- bool IsSuccess() const noexcept;
- inline operator bool() const noexcept { return IsSuccess(); }
+ bool IsSuccess() const noexcept;
+ inline explicit operator bool() const noexcept { return IsSuccess(); }
};
[[nodiscard]] Response Put(std::string_view Url, const IoBuffer& Payload);