Code to use libcurl as an IOChannel stream.
More...
#include <NetworkAdapter.h>
Code to use libcurl as an IOChannel stream.
§ 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.
§ ReservedNames
§ getCookiesIn()
static const std::string& gnash::NetworkAdapter::getCookiesIn |
( |
| ) |
|
|
inlinestatic |
Get CookiesIn variable, cookiefile path.
Returns the cookiefile path.
References DSOEXPORT.
§ isHeaderAllowed()
static DSOEXPORT bool gnash::NetworkAdapter::isHeaderAllowed |
( |
const std::string & |
headerName | ) |
|
|
inlinestatic |
Check whether a RequestHeader is permitted.
- Parameters
-
headerName | is checked against a set of reserved names (case-insensitive). |
- Returns
- true if the name is allowed.
References names.
§ makeStream() [1/3]
std::unique_ptr< IOChannel > gnash::NetworkAdapter::makeStream |
( |
const std::string & |
url, |
|
|
const std::string & |
cachefile |
|
) |
| |
|
static |
§ makeStream() [2/3]
std::unique_ptr< IOChannel > gnash::NetworkAdapter::makeStream |
( |
const std::string & |
url, |
|
|
const std::string & |
postdata, |
|
|
const std::string & |
cachefile |
|
) |
| |
|
static |
Returns a read-only IOChannel that fetches data from an url getting posted to.
The caller owns the returned IOChannel.
- Parameters
-
url | The url to post to. |
postdata | The url-encoded post data |
References makeStream().
§ makeStream() [3/3]
std::unique_ptr< IOChannel > gnash::NetworkAdapter::makeStream |
( |
const std::string & |
url, |
|
|
const std::string & |
postdata, |
|
|
const RequestHeaders & |
headers, |
|
|
const std::string & |
cachefile |
|
) |
| |
|
static |
§ setCookiesIn()
static void gnash::NetworkAdapter::setCookiesIn |
( |
const std::string & |
cookiesin | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following files: