mirror of
https://github.com/zerotier/pg_consul.git
synced 2026-05-22 16:22:07 -07:00
23 lines
494 B
C++
23 lines
494 B
C++
#ifndef CPR_UTIL_H
|
|
#define CPR_UTIL_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "cprtypes.h"
|
|
|
|
|
|
namespace cpr {
|
|
namespace util {
|
|
|
|
Header parseHeader(const std::string& headers);
|
|
std::string parseResponse(const std::string& response);
|
|
size_t writeFunction(void* ptr, size_t size, size_t nmemb, std::string* data);
|
|
std::vector<std::string> split(const std::string& to_split, char delimiter);
|
|
std::string urlEncode(const std::string& response);
|
|
|
|
} // namespace util
|
|
} // namespace cpr
|
|
|
|
#endif
|