comparison PalantirCppClient/HttpClient.h @ 43:9be852ad33d2

rename for c
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 04 Sep 2012 09:59:34 +0200
parents 3959d33612cc
children
comparison
equal deleted inserted replaced
42:ea48f38afe5f 43:9be852ad33d2
41 private: 41 private:
42 struct PImpl; 42 struct PImpl;
43 boost::shared_ptr<PImpl> pimpl_; 43 boost::shared_ptr<PImpl> pimpl_;
44 44
45 std::string url_; 45 std::string url_;
46 HttpMethod method_; 46 Palantir_HttpMethod method_;
47 HttpStatus lastStatus_; 47 Palantir_HttpStatus lastStatus_;
48 std::string postData_; 48 std::string postData_;
49 bool isVerbose_; 49 bool isVerbose_;
50 50
51 public: 51 public:
52 HttpClient(); 52 HttpClient();
66 const std::string& GetUrl() const 66 const std::string& GetUrl() const
67 { 67 {
68 return url_; 68 return url_;
69 } 69 }
70 70
71 void SetMethod(HttpMethod method) 71 void SetMethod(Palantir_HttpMethod method)
72 { 72 {
73 method_ = method; 73 method_ = method;
74 } 74 }
75 75
76 HttpMethod GetMethod() const 76 Palantir_HttpMethod GetMethod() const
77 { 77 {
78 return method_; 78 return method_;
79 } 79 }
80 80
81 std::string& AccessPostData() 81 std::string& AccessPostData()
97 97
98 bool Apply(std::string& answer); 98 bool Apply(std::string& answer);
99 99
100 bool Apply(Json::Value& answer); 100 bool Apply(Json::Value& answer);
101 101
102 HttpStatus GetLastStatus() const 102 Palantir_HttpStatus GetLastStatus() const
103 { 103 {
104 return lastStatus_; 104 return lastStatus_;
105 } 105 }
106 106
107 const char* GetLastStatusText() const 107 const char* GetLastStatusText() const