#include <BCResourceHandleCURL.h>

Public Member Functions | |
| BCResourceHandleCURL (const ResourceRequest &, ResourceHandleClient *, bool defersLoading, bool shouldContentSniff, bool mightDownloadFromHandle) | |
| virtual | ~BCResourceHandleCURL () |
| virtual KURL | url () const |
| Concrete Constructor will set BIResourceHandleClient*, method, and url. | |
| virtual WebCore::String | method () const |
| returns the method | |
| virtual PassRefPtr < FormData > | postData () const |
| returns the post data | |
| virtual ResourceHandleClient * | client () const |
| virtual void | setClient (ResourceHandleClient *client) |
| virtual const ResourceRequest & | request () const |
| virtual const HTTPHeaderMap & | requestHeaders () const |
| get request headers | |
| CURL * | handle () |
| void | setHandle (CURL *a) |
| const char * | getURL () |
| void | setURL (const char *url) |
| void | setHeaders (struct curl_slist *headers) |
| bool | loadsBlocked () |
| test if ResourceHandle loads is blocked | |
| void | clearAuthentication () |
| clear authentification | |
| void | cancel () |
| cancel the loading | |
| PassRefPtr < WebCore::SharedBuffer > | bufferedData () |
| return the bufferData | |
| void | setDefersLoading (bool defers) |
| set if the ResourceHandle defers loading | |
| void | setupPUT () |
| void | setupPOST () |
| void | processMessage (CURLMsg *msg) |
| size_t | write (void *ptr, size_t size, size_t nmemb) |
| size_t | header (char *ptr, size_t size, size_t nmemb) |
| void | observe (const String &, const String &) |
| Link cookie manager to an observer. | |
Protected Attributes | |
| CURL * | m_handle |
| char * | m_url |
| struct curl_slist * | m_customHeaders |
| bool | m_useSimple |
| execute the full request on callback don't multiplex | |
| Vector< char > | m_resultData |
| Stores entire response if job is m_useSimple. | |
| struct curl_slist * | m_customHeader |
| struct curl_slist * | m_customPostHeader |
| struct curl_httppost * | m_filePost |
| Vector< char > | m_postBytes |
| Vector< CString > | m_cstrings |
| ResourceResponse | m_response |
| ResourceError | m_error |
| bool | m_sentResponse |
| bool | m_loading |
| BC::BCResourceHandleCURL::BCResourceHandleCURL | ( | const ResourceRequest & | request, | |
| ResourceHandleClient * | client, | |||
| bool | defersLoading, | |||
| bool | shouldContentSniff, | |||
| bool | mightDownloadFromHandle | |||
| ) |
| BC::BCResourceHandleCURL::~BCResourceHandleCURL | ( | ) | [virtual] |
| virtual KURL BC::BCResourceHandleCURL::url | ( | ) | const [inline, virtual] |
Concrete Constructor will set BIResourceHandleClient*, method, and url.
If need, it will set form postData. returns the url
Implements BAL::BIResourceHandle.
| virtual WebCore::String BC::BCResourceHandleCURL::method | ( | ) | const [inline, virtual] |
| virtual PassRefPtr<FormData> BC::BCResourceHandleCURL::postData | ( | ) | const [inline, virtual] |
| virtual ResourceHandleClient* BC::BCResourceHandleCURL::client | ( | ) | const [inline, virtual] |
Reimplemented from BC::BCResourceHandleCommonImplementation.
| virtual void BC::BCResourceHandleCURL::setClient | ( | ResourceHandleClient * | client | ) | [inline, virtual] |
| virtual const ResourceRequest& BC::BCResourceHandleCURL::request | ( | ) | const [inline, virtual] |
Reimplemented from BC::BCResourceHandleCommonImplementation.
| virtual const HTTPHeaderMap& BC::BCResourceHandleCURL::requestHeaders | ( | ) | const [inline, virtual] |
| CURL* BC::BCResourceHandleCURL::handle | ( | ) | [inline] |
| void BC::BCResourceHandleCURL::setHandle | ( | CURL * | a | ) | [inline] |
| const char* BC::BCResourceHandleCURL::getURL | ( | ) | [inline] |
| void BC::BCResourceHandleCURL::setURL | ( | const char * | url | ) |
| void BC::BCResourceHandleCURL::setHeaders | ( | struct curl_slist * | headers | ) | [inline] |
| bool BC::BCResourceHandleCURL::loadsBlocked | ( | ) |
| void BC::BCResourceHandleCURL::clearAuthentication | ( | ) | [virtual] |
| void BC::BCResourceHandleCURL::cancel | ( | ) | [virtual] |
| PassRefPtr< SharedBuffer > BC::BCResourceHandleCURL::bufferedData | ( | ) | [virtual] |
| void BC::BCResourceHandleCURL::setDefersLoading | ( | bool | ) | [virtual] |
| void BC::BCResourceHandleCURL::setupPUT | ( | ) |
| void BC::BCResourceHandleCURL::setupPOST | ( | ) |
| void BC::BCResourceHandleCURL::processMessage | ( | CURLMsg * | msg | ) |
| size_t BC::BCResourceHandleCURL::write | ( | void * | ptr, | |
| size_t | size, | |||
| size_t | nmemb | |||
| ) |
| size_t BC::BCResourceHandleCURL::header | ( | char * | ptr, | |
| size_t | size, | |||
| size_t | nmemb | |||
| ) |
Link cookie manager to an observer.
| in) | the topic to register | |
| in) | the cookie |
Implements BAL::BIObserver.
CURL* BC::BCResourceHandleCURL::m_handle [protected] |
char* BC::BCResourceHandleCURL::m_url [protected] |
struct curl_slist* BC::BCResourceHandleCURL::m_customHeaders [read, protected] |
bool BC::BCResourceHandleCURL::m_useSimple [protected] |
execute the full request on callback don't multiplex
Vector<char> BC::BCResourceHandleCURL::m_resultData [protected] |
Stores entire response if job is m_useSimple.
struct curl_slist* BC::BCResourceHandleCURL::m_customHeader [read, protected] |
struct curl_slist* BC::BCResourceHandleCURL::m_customPostHeader [read, protected] |
struct curl_httppost* BC::BCResourceHandleCURL::m_filePost [read, protected] |
Vector<char> BC::BCResourceHandleCURL::m_postBytes [protected] |
Vector<CString> BC::BCResourceHandleCURL::m_cstrings [protected] |
ResourceResponse BC::BCResourceHandleCURL::m_response [protected] |
ResourceError BC::BCResourceHandleCURL::m_error [protected] |
bool BC::BCResourceHandleCURL::m_sentResponse [protected] |
bool BC::BCResourceHandleCURL::m_loading [protected] |