Mercurial > hg > orthanc-transfers
comparison Framework/PushMode/BucketPushQuery.cpp @ 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 |
comparison
equal
deleted
inserted
replaced
43:c3fefbb11321 | 44:f4e828607f02 |
---|---|
30 BucketPushQuery::BucketPushQuery(OrthancInstancesCache& cache, | 30 BucketPushQuery::BucketPushQuery(OrthancInstancesCache& cache, |
31 const TransferBucket& bucket, | 31 const TransferBucket& bucket, |
32 const std::string& peer, | 32 const std::string& peer, |
33 const std::string& transactionUri, | 33 const std::string& transactionUri, |
34 size_t bucketIndex, | 34 size_t bucketIndex, |
35 BucketCompression compression) : | 35 BucketCompression compression, |
36 const std::map<std::string, std::string>& headers) : | |
36 cache_(cache), | 37 cache_(cache), |
37 bucket_(bucket), | 38 bucket_(bucket), |
38 peer_(peer), | 39 peer_(peer), |
39 uri_(transactionUri + "/" + boost::lexical_cast<std::string>(bucketIndex)), | 40 uri_(transactionUri + "/" + boost::lexical_cast<std::string>(bucketIndex)), |
40 compression_(compression) | 41 compression_(compression), |
42 headers_(headers) | |
41 { | 43 { |
42 } | 44 } |
43 | 45 |
44 | 46 |
45 void BucketPushQuery::ReadBody(std::string& body) const | 47 void BucketPushQuery::ReadBody(std::string& body) const |