comparison 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
comparison
equal deleted inserted replaced
1184:4e9d517503ae 1186:b17b6bd59747
50 std::string credentials_; 50 std::string credentials_;
51 HttpMethod method_; 51 HttpMethod method_;
52 HttpStatus lastStatus_; 52 HttpStatus lastStatus_;
53 std::string postData_; 53 std::string postData_;
54 bool isVerbose_; 54 bool isVerbose_;
55 long timeout_;
55 56
56 void Setup(); 57 void Setup();
57 58
58 void operator= (const HttpClient&); // Forbidden 59 void operator= (const HttpClient&); // Forbidden
59 60
85 } 86 }
86 87
87 HttpMethod GetMethod() const 88 HttpMethod GetMethod() const
88 { 89 {
89 return method_; 90 return method_;
91 }
92
93 void SetTimeout(long seconds)
94 {
95 timeout_ = seconds;
96 }
97
98 long GetTimeout() const
99 {
100 return timeout_;
90 } 101 }
91 102
92 void SetPostData(const std::string& data) 103 void SetPostData(const std::string& data)
93 { 104 {
94 postData_ = data; 105 postData_ = data;