Mercurial > hg > orthanc
comparison Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 3443:0371b65d5f76
OrthancPlugins::HttpClient::SetChunkedTransfersAllowed()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 24 Jun 2019 16:55:28 +0200 |
parents | d97ef941d521 |
children | f93a9c6c00c5 |
comparison
equal
deleted
inserted
replaced
3442:dd1e68f2d0c0 | 3443:0371b65d5f76 |
---|---|
843 std::string certificateFile_; | 843 std::string certificateFile_; |
844 std::string certificateKeyFile_; | 844 std::string certificateKeyFile_; |
845 std::string certificateKeyPassword_; | 845 std::string certificateKeyPassword_; |
846 bool pkcs11_; | 846 bool pkcs11_; |
847 std::string fullBody_; | 847 std::string fullBody_; |
848 IRequestBody* chunkedBody_; | 848 IRequestBody* chunkedBody_; |
849 bool allowChunkedTransfers_; | |
849 | 850 |
850 #if HAS_ORTHANC_PLUGIN_CHUNKED_HTTP_CLIENT == 1 | 851 #if HAS_ORTHANC_PLUGIN_CHUNKED_HTTP_CLIENT == 1 |
851 void ExecuteWithStream(uint16_t& httpStatus, // out | 852 void ExecuteWithStream(uint16_t& httpStatus, // out |
852 IAnswer& answer, // out | 853 IAnswer& answer, // out |
853 IRequestBody& body) const; | 854 IRequestBody& body) const; |
920 void SwapBody(std::string& body); | 921 void SwapBody(std::string& body); |
921 | 922 |
922 void SetBody(const std::string& body); | 923 void SetBody(const std::string& body); |
923 | 924 |
924 void SetBody(IRequestBody& body); | 925 void SetBody(IRequestBody& body); |
926 | |
927 // This function can be used to disable chunked transfers if the | |
928 // remote server is Orthanc with a version <= 1.5.6. | |
929 void SetChunkedTransfersAllowed(bool allow) | |
930 { | |
931 allowChunkedTransfers_ = allow; | |
932 } | |
933 | |
934 bool IsChunkedTransfersAllowed() const | |
935 { | |
936 return allowChunkedTransfers_; | |
937 } | |
925 | 938 |
926 void Execute(IAnswer& answer); | 939 void Execute(IAnswer& answer); |
927 | 940 |
928 void Execute(HttpHeaders& answerHeaders /* out */, | 941 void Execute(HttpHeaders& answerHeaders /* out */, |
929 std::string& answerBody /* out */); | 942 std::string& answerBody /* out */); |