move http files to a separate directory

pull/40/head
Matchman Green 2012-05-06 02:21:39 +08:00
parent 1c7b114ea5
commit b42e7c6501
16 changed files with 13 additions and 13 deletions

View File

@ -34,6 +34,7 @@ file (GLOB XML_HEADERS
file (GLOB LIBGRIVE_SRC
src/drive/*.cc
src/http/*.cc
src/protocol/*.cc
src/util/*.cc
src/xml/*.cc

View File

@ -21,7 +21,7 @@
#include "File.hh"
#include "protocol/HTTP.hh"
#include "http/HTTP.hh"
#include "protocol/Json.hh"
#include "protocol/JsonResponse.hh"
#include "protocol/OAuth2.hh"

View File

@ -19,10 +19,10 @@
#include "File.hh"
#include "protocol/Download.hh"
#include "http/Download.hh"
#include "http/StringResponse.hh"
#include "protocol/Json.hh"
#include "protocol/OAuth2.hh"
#include "protocol/StringResponse.hh"
#include "util/OS.hh"
#include "util/Path.hh"

View File

@ -21,7 +21,7 @@
#include <string>
#include "protocol/HTTP.hh"
#include "http/HTTP.hh"
#include "util/DateTime.hh"
#include <iosfwd>

View File

@ -19,7 +19,7 @@
#include "JsonResponse.hh"
#include "Json.hh"
#include "protocol/Json.hh"
namespace gr { namespace http {

View File

@ -19,8 +19,8 @@
#pragma once
#include "Receivable.hh"
#include "StringResponse.hh"
#include "http/Receivable.hh"
#include "http/StringResponse.hh"
namespace gr
{

View File

@ -19,9 +19,10 @@
#include "OAuth2.hh"
#include "protocol/HTTP.hh"
#include "protocol/Json.hh"
#include "protocol/JsonResponse.hh"
#include "JsonResponse.hh"
#include "Json.hh"
#include "http/HTTP.hh"
// for debugging
#include <iostream>
@ -99,10 +100,8 @@ void OAuth2::Refresh( )
http::Agent http ;
http.Post( token_url, post, &resp ) ;
std::cout << "here" << std::endl ;
Json jresp = resp.Response() ;
m_access = jresp["access_token"].As<std::string>() ;
m_access = resp.Response()["access_token"].As<std::string>() ;
}
std::string OAuth2::RefreshToken( ) const