Wt::Http::Client Class Reference

Collection of methods for dealing with a Wt application from a client perspective. More...

#include <Wt/Http/Client>

List of all members.

Public Types

enum  ClientOption { SupportsAjax = 0x1 }
 Enumeration for client user-agent options. More...

Static Public Member Functions

static void startWtSession (const std::string &host, const std::string &port, const std::string &path, const std::string &query=std::string(), WFlags< ClientOption > flags=SupportsAjax)
 Starts a Wt session.


Detailed Description

Collection of methods for dealing with a Wt application from a client perspective.

Member Enumeration Documentation

Enumeration for client user-agent options.

Enumerator:
SupportsAjax  Flag that indicates supports for AJAX.


Member Function Documentation

void Wt::Http::Client::startWtSession ( const std::string &  host,
const std::string &  port,
const std::string &  path,
const std::string &  query = std::string(),
WFlags< ClientOption flags = SupportsAjax 
) [static]

Starts a Wt session.

A Wt application uses a bootstrap procedure during which it collects information on user agent capabilities (unless the progressive bootstrap method is enabled). Therefore a session is not spawned after the first request, but only after these capabilities have been collected by a second request.

This function starts a session on the specific host, port, path, and optional query. These correspond to the different parts of a url:

http://host:port/path?query.


Generated on Fri Mar 26 17:12:08 2010 for Wt by doxygen 1.5.6