|
Gnash
0.8.11dev
|
Code to use libcurl as an IOChannel stream. More...
#include <NetworkAdapter.h>
Public Types | |
| typedef std::map< std::string, std::string, StringNoCaseLessThan > | RequestHeaders |
| typedef std::set< std::string, StringNoCaseLessThan > | ReservedNames |
Static Public Member Functions | |
| 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. More... | |
| static DSOEXPORT std::unique_ptr< IOChannel > | makeStream (const std::string &url, const std::string &postdata, const std::string &cachefile) |
| Returns a read-only IOChannel that fetches data from an url getting posted to. More... | |
| static DSOEXPORT std::unique_ptr< IOChannel > | makeStream (const std::string &url, const std::string &postdata, const RequestHeaders &headers, const std::string &cachefile) |
| Returns a read-only IOChannel that fetches data from an url getting posted to. More... | |
| static DSOEXPORT bool | isHeaderAllowed (const std::string &headerName) |
| Check whether a RequestHeader is permitted. More... | |
| static void | setCookiesIn (const std::string &cookiesin) |
| Set CookiesIn variable to cookiefile path. More... | |
| static const std::string & | getCookiesIn () |
| Get CookiesIn variable, cookiefile path. More... | |
Code to use libcurl as an IOChannel stream.
| typedef std::map<std::string, std::string, StringNoCaseLessThan> gnash::NetworkAdapter::RequestHeaders |
Custom headers for addRequestHeader. These are case insensitive, and subsequent addition of a header already there replaces any previous one. Some values are not allowed.
| typedef std::set<std::string, StringNoCaseLessThan> gnash::NetworkAdapter::ReservedNames |
|
inlinestatic |
Get CookiesIn variable, cookiefile path.
Returns the cookiefile path.
References DSOEXPORT.
Referenced by makeStream().
|
inlinestatic |
Check whether a RequestHeader is permitted.
| headerName | is checked against a set of reserved names (case-insensitive). |
References names.
Referenced by makeStream().
|
static |
Returns a read-only IOChannel that fetches data from an url.
| url | The url to fetch data from. |
References _, and gnash::log_error().
Referenced by gnash::StreamProvider::getStream(), and makeStream().
|
static |
Returns a read-only IOChannel that fetches data from an url getting posted to.
The caller owns the returned IOChannel.
| url | The url to post to. |
| postdata | The url-encoded post data |
References makeStream().
|
static |
Returns a read-only IOChannel that fetches data from an url getting posted to.
The caller owns the returned IOChannel.
| url | The url to post to. |
| postdata | The url-encoded post data |
| headers | A RequestHeaders map of custom headers to send. |
References _, buf, data, gnash::WallClockTimer::elapsed(), fwrite(), gnash::get(), getCookiesIn(), gnash::RcInitFile::getDefaultInstance(), gnash::RcInitFile::getStreamsTimeout(), gnash::gnashSleep(), gnash::RcInitFile::insecureSSL(), isHeaderAllowed(), gnash::log_debug(), gnash::log_error(), gnash::log_security(), makeStream(), names, gnash::WallClockTimer::restart(), ret, UNUSED, url, and VERSION.
|
inlinestatic |
Set CookiesIn variable to cookiefile path.
| cookiesin | Cookiefile path |
Referenced by gnash::Player::setCookiesIn().
1.8.11