Gnash  0.8.10
Public Types | Static Public Member Functions
gnash::NetworkAdapter Class Reference

Code to use libcurl as an IOChannel stream. More...

#include <NetworkAdapter.h>

List of all members.

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::auto_ptr
< IOChannel
makeStream (const std::string &url, const std::string &cachefile)
 Returns a read-only IOChannel that fetches data from an url.
static DSOEXPORT std::auto_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.
static DSOEXPORT std::auto_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.
static DSOEXPORT bool isHeaderAllowed (const std::string &headerName)
 Check whether a RequestHeader is permitted.

Detailed Description

Code to use libcurl as an IOChannel stream.


Member Typedef Documentation

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.


Member Function Documentation

static DSOEXPORT bool gnash::NetworkAdapter::isHeaderAllowed ( const std::string &  headerName) [inline, static]

Check whether a RequestHeader is permitted.

Parameters:
headerNameis checked against a set of reserved names (case-insensitive).
Returns:
true if the name is allowed.

References names.

std::auto_ptr< IOChannel > gnash::NetworkAdapter::makeStream ( const std::string &  url,
const std::string &  cachefile 
) [static]

Returns a read-only IOChannel that fetches data from an url.

Parameters:
urlThe url to fetch data from.

References _.

Referenced by makeStream(), and gnash::StreamProvider::getStream().

std::auto_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:
urlThe url to post to.
postdataThe url-encoded post data

References makeStream().

std::auto_ptr< IOChannel > gnash::NetworkAdapter::makeStream ( const std::string &  url,
const std::string &  postdata,
const RequestHeaders headers,
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:
urlThe url to post to.
postdataThe url-encoded post data
headersA RequestHeaders map of custom headers to send.

References makeStream().


The documentation for this class was generated from the following files: