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

Creates a BrowserStream.

Document this better
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.
null if it fails, else BrowserStream object
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: