diff options
| author | Dan Engelbrecht <[email protected]> | 2024-04-03 12:32:34 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-04-03 12:32:34 +0200 |
| commit | 034459cb66580d0aa680ae96a18b5a884808386c (patch) | |
| tree | daef3bdb41666db9491cefc224f3da8c8b822631 /src/zenhttp/include | |
| parent | compressed header reading opt (#33) (diff) | |
| download | zen-034459cb66580d0aa680ae96a18b5a884808386c.tar.xz zen-034459cb66580d0aa680ae96a18b5a884808386c.zip | |
zenremoteprojectstore with httpclient (#35)
- Bugfix: Fix log of Success/Failure for oplog import
- Improvement: Use HttpClient when doing oplog export/import with a zenserver as a remote target. Includes retry logic
- Improvement: Increase the retry count to 4 (5 attempts in total) when talking to Jupiter for oplog export/import
Diffstat (limited to 'src/zenhttp/include')
| -rw-r--r-- | src/zenhttp/include/zenhttp/httpclient.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/zenhttp/include/zenhttp/httpclient.h b/src/zenhttp/include/zenhttp/httpclient.h index f3559f214..8318e3679 100644 --- a/src/zenhttp/include/zenhttp/httpclient.h +++ b/src/zenhttp/include/zenhttp/httpclient.h @@ -149,8 +149,16 @@ public: [[nodiscard]] Response Delete(std::string_view Url, const KeyValueMap& AdditionalHeader = {}); [[nodiscard]] Response Post(std::string_view Url, const KeyValueMap& AdditionalHeader = {}, const KeyValueMap& Parameters = {}); [[nodiscard]] Response Post(std::string_view Url, const IoBuffer& Payload, const KeyValueMap& AdditionalHeader = {}); + [[nodiscard]] Response Post(std::string_view Url, + const IoBuffer& Payload, + ZenContentType ContentType, + const KeyValueMap& AdditionalHeader = {}); [[nodiscard]] Response Post(std::string_view Url, CbObject Payload, const KeyValueMap& AdditionalHeader = {}); [[nodiscard]] Response Post(std::string_view Url, CbPackage Payload, const KeyValueMap& AdditionalHeader = {}); + [[nodiscard]] Response Post(std::string_view Url, + const CompositeBuffer& Payload, + ZenContentType ContentType, + const KeyValueMap& AdditionalHeader = {}); [[nodiscard]] Response Upload(std::string_view Url, const IoBuffer& Payload, const KeyValueMap& AdditionalHeader = {}); [[nodiscard]] Response Upload(std::string_view Url, const CompositeBuffer& Payload, |