Android-cuttlefish cvd tool
Namespaces | Functions
http_json.cc File Reference
#include "cuttlefish/host/libs/web/http_client/http_json.h"
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#include <android-base/logging.h>
#include <json/value.h>
#include "cuttlefish/common/libs/utils/json.h"
#include "cuttlefish/common/libs/utils/result.h"
#include "cuttlefish/host/libs/web/http_client/http_client.h"
#include "cuttlefish/host/libs/web/http_client/http_string.h"
Include dependency graph for http_json.cc:

Namespaces

namespace  cuttlefish
 
namespace  cuttlefish::anonymous_namespace{http_json.cc}
 

Functions

HttpResponse< Json::Value > cuttlefish::anonymous_namespace{http_json.cc}::Parse (HttpResponse< std::string > response)
 
Result< HttpResponse< Json::Value > > cuttlefish::HttpPostToJson (HttpClient &http_client, const std::string &url, const std::string &data, const std::vector< std::string > &headers)
 
Result< HttpResponse< Json::Value > > cuttlefish::HttpPostToJson (HttpClient &http_client, const std::string &url, const Json::Value &data, const std::vector< std::string > &headers)
 
Result< HttpResponse< Json::Value > > cuttlefish::HttpGetToJson (HttpClient &http_client, const std::string &url, const std::vector< std::string > &headers)