Wt  3.2.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | List of all members
Wt::Http::ResponseContinuation Class Reference

A resource response continuation object. More...

#include <Wt/Http/ResponseContinuation>

Public Member Functions

void setData (const boost::any &data)
 Set data associated with the continuation.
boost::any data ()
 Return data associated with the continuation.
WResourceresource () const
 Return the resource.
void waitForMoreData ()
 Wait for more data.
bool isWaitingForMoreData () const
 Returns whether this continuation is waiting for data.

Detailed Description

A resource response continuation object.

A response continuation object is used to keep track of a response which is to be continued.

You may associate data with the object using setData().

A continuation is used to resume sending more data later for this response. There are two possible reasons for this:

See Also
Response::createContinuation(), Request::continuation()

Member Function Documentation

boost::any Wt::Http::ResponseContinuation::data ( )

Return data associated with the continuation.

See Also
setData()
bool Wt::Http::ResponseContinuation::isWaitingForMoreData ( ) const

Returns whether this continuation is waiting for data.

See Also
waitForMoreData()
void Wt::Http::ResponseContinuation::setData ( const boost::any &  data)

Set data associated with the continuation.

You could do this to keep track of the state of sending the data for a WResource.

void Wt::Http::ResponseContinuation::waitForMoreData ( )

Wait for more data.

This suspends the handling of this request until more data is available, which is indicated to a resource using WResource::haveMoreData().


Generated on Mon Sep 24 2012 for the C++ Web Toolkit (Wt) by doxygen 1.8.1.2