Mercurial > hg > orthanc-transfers
diff Framework/PushMode/BucketPushQuery.h @ 44:f4e828607f02
Added 'SenderTransferID' option that is added as an HTTP header in outgoing requests in PushMode
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 19 Oct 2022 21:12:57 +0200 |
parents | 44a0430d7899 |
children | 1e396fb509ca |
line wrap: on
line diff
--- a/Framework/PushMode/BucketPushQuery.h Tue Jul 12 17:49:40 2022 +0200 +++ b/Framework/PushMode/BucketPushQuery.h Wed Oct 19 21:12:57 2022 +0200 @@ -32,6 +32,7 @@ std::string peer_; std::string uri_; BucketCompression compression_; + std::map<std::string, std::string> headers_; public: BucketPushQuery(OrthancInstancesCache& cache, @@ -39,7 +40,8 @@ const std::string& peer, const std::string& transactionUri, size_t bucketIndex, - BucketCompression compression); + BucketCompression compression, + const std::map<std::string, std::string>& headers); virtual Orthanc::HttpMethod GetMethod() const { @@ -60,5 +62,10 @@ virtual void HandleAnswer(const void* answer, size_t size); + + virtual void GetHttpHeaders(std::map<std::string, std::string>& headers) const + { + headers = headers_; + } }; }