FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
BrowserStreamPtr FB::BrowserHost::createPostStream ( const std::string &  url,
const PluginEventSinkPtr &  callback,
const std::string &  postdata,
bool  cache = true,
bool  seekable = false,
size_t  internalBufferSize = 128 * 1024 
) const
virtual

Creates a BrowserStream.

Todo:
Document this better
Parameters
urlURL of the document to request.
callbackPluginEventSink to send status updates to (usually your Plugin class derived from PluginCore)
postdatadata to post.
cachetrue to cache.
seekabletrue if the Stream should be seekable.
internalBufferSizeSize of the internal buffer.
Returns
null if it fails, else BrowserStream object
Deprecated:
1.7 use createStream with a BrowserRequestStream of type "POST"
See Also
virtual BrowserStreamPtr createStream( const BrowserStreamRequest& req ) const

Definition at line 378 of file BrowserHost.cpp.

References FB::BrowserStreamRequest::setBufferSize(), FB::BrowserStreamRequest::setCacheable(), FB::BrowserStreamRequest::setEventSink(), and FB::BrowserStreamRequest::setSeekable().

381 {
382  BrowserStreamRequest req(url, "POST");
383  req.setEventSink(callback);
384  req.setCacheable(cache);
385  req.setSeekable(seekable);
386  req.setBufferSize(internalBufferSize);
387  req.setPostData(postdata);
388  return createStream(req);
389 }

Here is the call graph for this function: