Mercurial > hg > orthanc
comparison OrthancCppClient/HttpClient.h @ 475:72cca077abf8
removal of HttpException
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 15 Jul 2013 17:32:47 +0200 |
parents | a9693dc7089c |
children |
comparison
equal
deleted
inserted
replaced
474:a9693dc7089c | 475:72cca077abf8 |
---|---|
25 **/ | 25 **/ |
26 | 26 |
27 | 27 |
28 #pragma once | 28 #pragma once |
29 | 29 |
30 #include "HttpException.h" | 30 #include "../Core/Enumerations.h" |
31 | |
32 #include "../Core/Toolbox.h" | |
33 | 31 |
34 #include <string> | 32 #include <string> |
35 #include <boost/shared_ptr.hpp> | 33 #include <boost/shared_ptr.hpp> |
36 #include <json/json.h> | 34 #include <json/json.h> |
37 | 35 |
110 HttpStatus GetLastStatus() const | 108 HttpStatus GetLastStatus() const |
111 { | 109 { |
112 return lastStatus_; | 110 return lastStatus_; |
113 } | 111 } |
114 | 112 |
115 const char* GetLastStatusText() const | 113 const char* GetLastStatusText() const; |
116 { | |
117 return Toolbox::ToString(lastStatus_); | |
118 } | |
119 | 114 |
120 void SetCredentials(const char* username, | 115 void SetCredentials(const char* username, |
121 const char* password); | 116 const char* password); |
122 | 117 |
123 static void GlobalInitialize(); | 118 static void GlobalInitialize(); |