20 #ifndef NETWORK_ADAPTER_H 21 #define NETWORK_ADAPTER_H 42 typedef std::map<std::string, std::string, StringNoCaseLessThan>
51 const std::string&
url,
const std::string& cachefile);
62 const std::string&
url,
const std::string& postdata,
63 const std::string& cachefile);
76 const std::string& cachefile);
88 const ReservedNames&
names = reservedNames();
89 return (names.find(headerName) == names.end());
97 NetworkAdapter::CookiesIn = cookiesin;
105 return NetworkAdapter::CookiesIn;
113 static const ReservedNames& reservedNames();
119 #endif // CURL_ADAPTER_H
static DSOEXPORT std::unique_ptr< IOChannel > makeStream(const std::string &url, const std::string &cachefile)
Returns a read-only IOChannel that fetches data from an url.
Definition: NetworkAdapter.cpp:47
std::set< std::string, StringNoCaseLessThan > ReservedNames
Definition: NetworkAdapter.h:79
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
static const std::string & getCookiesIn()
Get CookiesIn variable, cookiefile path.
Definition: NetworkAdapter.h:104
char ** names[EV_MAX+1]
Definition: evtest.c:357
static void setCookiesIn(const std::string &cookiesin)
Set CookiesIn variable to cookiefile path.
Definition: NetworkAdapter.h:96
static DSOEXPORT bool isHeaderAllowed(const std::string &headerName)
Check whether a RequestHeader is permitted.
Definition: NetworkAdapter.h:86
Code to use libcurl as an IOChannel stream.
Definition: NetworkAdapter.h:35
#define DSOEXPORT
Definition: dsodefs.h:55
std::map< std::string, std::string, StringNoCaseLessThan > RequestHeaders
Definition: NetworkAdapter.h:43
std::string url
Definition: gnash.cpp:59