HttpGetの実装に向けてHttpBaseの実装
This commit is contained in:
@@ -3,18 +3,14 @@
|
||||
|
||||
#include <functional>
|
||||
#include "cocoatweet/oauth/oauth.h"
|
||||
#include <cocoatweet/api/interface/httpBase.h>
|
||||
|
||||
namespace CocoaTweet::API::Interface {
|
||||
class HttpPost {
|
||||
class HttpPost : public HttpBase{
|
||||
public:
|
||||
protected:
|
||||
std::weak_ptr<CocoaTweet::OAuth::OAuth1> oauth_;
|
||||
std::map<std::string, std::string> bodyParam_;
|
||||
std::string url_;
|
||||
std::string contentType_;
|
||||
void process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth,
|
||||
std::function<void(const unsigned int, const std::string&)> _callback);
|
||||
static size_t curlCallback_(char* _ptr, size_t _size, size_t _nmemb, std::string* _stream);
|
||||
};
|
||||
} // namespace CocoaTweet::API::Interface
|
||||
|
||||
|
||||
Reference in New Issue
Block a user