FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
Public Member Functions | List of all members
FB::BrowserStreamRequest Class Reference

Information about an HTTP request to be made. More...

#include "BrowserStreamRequest.h"

Collaboration diagram for FB::BrowserStreamRequest:
Collaboration graph

Public Member Functions

void setSeekable (bool s)
 Call with true to request that the stream be seekable; default is false. More...
 
void setCacheable (bool c)
 Call with true to indicate that the browser's cache may be used for this request; default is false. Currently only honored on ActiveX (IE) More...
 
bool wasAccepted () const
 Returns true if the request was accepted; used internally. User-created requests are accepted by default. More...
 
void addQueryData (const std::string &key, const std::string &val)
 Add a GET querystring parameter (... &key=val ...) More...
 
void setHeaders (const std::string &headers)
 Used internally to set the headers on this object. Should not be called normally. More...
 
void setLastModified (uint32_t ts)
 Used internally to set the lastmodified timestamp on the object. More...
 
void setBufferSize (size_t size)
 Call this to indicate the preferred internal buffer size of the BrowserStream object. More...
 
void setEventSink (const PluginEventSinkPtr &ptr)
 To use a PluginEventSink such as DefaultBrowserStreamHandler or a derivative call this method to specify the object that should be attached to the stream as an observer. More...
 
PluginEventSinkPtr getEventSink () const
 Returns the PluginEventSink assigned to be the observer for the BrowserStream, or a NULL BrowserStreamPtr if none. More...
 
void setCallback (const HttpCallback &cb)
 Call this method to provide a callback function that should be called when the request completes. More...
 
HttpCallback getCallback () const
 Returns the HttpCallback functor assigned to the object, or a NULL HttpCallback if none. More...
 
std::string getPostData () const
 Returns POST data for the object, if any. More...
 
std::string getPostHeaders () const
 Returns POST headers for the object, if any. More...
 

Detailed Description

Information about an HTTP request to be made.

Use this class to make HTTP requests through the browser. Create the stream and then call BrowserHost::createStream

See Also
BrowserHost::createStream
Since
1.7

Definition at line 38 of file BrowserStreamRequest.h.


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