-rw-r--r-- | include/opkele/oauth/consumer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/opkele/oauth/consumer.h b/include/opkele/oauth/consumer.h index 1e2784c..9196297 100644 --- a/include/opkele/oauth/consumer.h +++ b/include/opkele/oauth/consumer.h @@ -1,12 +1,13 @@ #ifndef __OPKELE_OAUTH_CONSUMER_H #define __OPKELE_OAUTH_CONSUMER_H #include <string> #include <opkele/types.h> #include <opkele/oauth.h> +#include <opkele/curl.h> namespace opkele { namespace oauth { using std::string; enum oauth_method_t { @@ -38,14 +39,18 @@ namespace opkele { struct http_request_t { string authorize_header; string method; string url; string body; + util::curl_slist_t _curl_headers_list; + http_request_t(const string& m,const string& u) : method(m), url(u) { } + + void setup_curl(CURL *curl); }; class basic_consumer { public: token_t consumer_token; |