FB::SimpleStreamHelper Class Reference
Helper class for making simple HTTP requests. More...
#include <SimpleStreamHelper.h>
Inheritance diagram for FB::SimpleStreamHelper:

Collaboration diagram for FB::SimpleStreamHelper:

Public Member Functions | |
| virtual bool | onStreamDataArrived (FB::StreamDataArrivedEvent *evt, FB::BrowserStream *) |
| Called when data arrives. | |
| virtual bool | onStreamOpened (FB::StreamOpenedEvent *evt, FB::BrowserStream *) |
| Called when the stream was opened successfully. | |
| virtual bool | onStreamCompleted (FB::StreamCompletedEvent *evt, FB::BrowserStream *) |
| Called when the stream finished downloading successfully. | |
Static Public Member Functions | |
| static FB::SimpleStreamHelperPtr | AsyncRequest (const BrowserHostConstPtr &host, const BrowserStreamRequest &req) |
| Creates an asynchronous HTTP request from the provided BrowserStreamRequest. | |
| static FB::SimpleStreamHelperPtr | AsyncRequest (const BrowserHostConstPtr &host, const BrowserStreamPtr &stream, const BrowserStreamRequest &req) |
| Creates an asynchronous HTTP request from the provided BrowserStreamRequest and existing stream object. | |
| static FB::SimpleStreamHelperPtr | AsyncGet (const FB::BrowserHostPtr &host, const FB::URI &uri, const HttpCallback &callback, bool cache=true, size_t bufferSize=128 *1024) |
| Starts an asynchronous HTTP get request. | |
| static FB::SimpleStreamHelperPtr | AsyncPost (const FB::BrowserHostPtr &host, const FB::URI &uri, const std::string &postdata, const HttpCallback &callback, bool cache=true, size_t bufferSize=128 *1024) |
| Starts an asynchronous HTTP post request. | |
| static HttpStreamResponsePtr | SynchronousGet (const FB::BrowserHostPtr &host, const FB::URI &uri, const bool cache=true, const size_t bufferSize=128 *1024) |
| Do not call from the main thread! Starts a Synchronous HTTP get request. | |
| static HttpStreamResponsePtr | SynchronousRequest (const FB::BrowserHostPtr &host, const BrowserStreamRequest &req) |
| Do not call from the main thread! Starts a Synchronous HTTP request. | |
| static HttpStreamResponsePtr | SynchronousPost (const FB::BrowserHostPtr &host, const FB::URI &uri, const std::string &postdata, const bool cache=true, const size_t bufferSize=128 *1024) |
| Do not call from the main thread! Starts a Synchronous HTTP POST request. | |
Detailed Description
Helper class for making simple HTTP requests.
This class can be used as a helper class to make HTTP requests easily using BrowserStreams
Definition at line 74 of file SimpleStreamHelper.h.
The documentation for this class was generated from the following files:
Generated on 24 May 2013 for FireBreath by
1.6.1
Labels
