comparison Framework/TransferQuery.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
comparison
equal deleted inserted replaced
43:c3fefbb11321 44:f4e828607f02
32 Json::Value resources_; 32 Json::Value resources_;
33 BucketCompression compression_; 33 BucketCompression compression_;
34 bool hasOriginator_; 34 bool hasOriginator_;
35 std::string originator_; 35 std::string originator_;
36 int priority_; 36 int priority_;
37 std::string senderTransferId_;
37 38
38 public: 39 public:
39 explicit TransferQuery(const Json::Value& body); 40 explicit TransferQuery(const Json::Value& body);
40 41
41 const std::string& GetPeer() const 42 const std::string& GetPeer() const
63 int GetPriority() const 64 int GetPriority() const
64 { 65 {
65 return priority_; 66 return priority_;
66 } 67 }
67 68
69 const std::string& GetSenderTransferID() const;
70
71 void GetHttpHeaders(std::map<std::string, std::string>& headers) const;
72
68 void Serialize(Json::Value& target) const; 73 void Serialize(Json::Value& target) const;
69 }; 74 };
70 } 75 }