14typedef std::map<std::string, std::string>
CookieMap;
40std::string
urlPath(
const std::string& url);
#define PRIVATE
Attribute for private functions not intended to be called by plugins.
Definition common.hpp:32
const char * filename
Definition logger.hpp:41
std::string urlPath(const std::string &url)
Returns the path portion of the URL.
bool requestDownload(const std::string &url, const std::string &filename, float *progress, const CookieMap &cookies={})
Returns true if downloaded successfully.
Method
Definition network.hpp:16
@ METHOD_DELETE
Definition network.hpp:20
@ METHOD_GET
Definition network.hpp:17
@ METHOD_PUT
Definition network.hpp:19
@ METHOD_POST
Definition network.hpp:18
std::map< std::string, std::string > CookieMap
Definition network.hpp:14
std::string encodeUrl(const std::string &s)
URL-encodes a string.
json_t * requestJson(Method method, const std::string &url, json_t *dataJ=NULL, const CookieMap &cookies={})
Requests a JSON API URL over HTTP(S), using the data as the query (GET) or the body (POST,...
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9