Mercurial > hg > orthanc
diff Core/HttpClient.h @ 1186:b17b6bd59747
timeouts for HTTP and DICOM
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 14 Oct 2014 14:47:58 +0200 |
parents | cc4ff680e2a0 |
children | 88010d8e12cf |
line wrap: on
line diff
--- a/Core/HttpClient.h Fri Oct 10 09:13:48 2014 +0200 +++ b/Core/HttpClient.h Tue Oct 14 14:47:58 2014 +0200 @@ -52,6 +52,7 @@ HttpStatus lastStatus_; std::string postData_; bool isVerbose_; + long timeout_; void Setup(); @@ -89,6 +90,16 @@ return method_; } + void SetTimeout(long seconds) + { + timeout_ = seconds; + } + + long GetTimeout() const + { + return timeout_; + } + void SetPostData(const std::string& data) { postData_ = data;