File: classWt_1_1Http_1_1Client.html

package info (click to toggle)
witty 3.1.2-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 45,512 kB
  • ctags: 35,832
  • sloc: cpp: 69,469; ansic: 66,945; xml: 4,383; sh: 594; perl: 108; makefile: 106
file content (128 lines) | stat: -rw-r--r-- 7,048 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Wt: Wt::Http::Client Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="namespaceWt_1_1Http.html">Http</a>::<a class="el" href="classWt_1_1Http_1_1Client.html">Client</a>
  </div>
</div>
<div class="contents">
<h1>Wt::Http::Client Class Reference</h1><!-- doxytag: class="Wt::Http::Client" -->Collection of methods for dealing with a Wt application from a client perspective.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Wt/Http/Client&gt;</code>
<p>

<p>
<a href="classWt_1_1Http_1_1Client-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Http_1_1Client.html#66729a402596f1f7bb7ca0581e4d50ef">ClientOption</a> { <a class="el" href="classWt_1_1Http_1_1Client.html#66729a402596f1f7bb7ca0581e4d50effe42fa8300bb8004fadf080aec00a9cd">SupportsAjax</a> =  0x1
 }</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Enumeration for client user-agent options.  <a href="classWt_1_1Http_1_1Client.html#66729a402596f1f7bb7ca0581e4d50ef">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Http_1_1Client.html#579207474fa28b9f84c040c524f565d0">startWtSession</a> (const std::string &amp;host, const std::string &amp;port, const std::string &amp;path, const std::string &amp;query=std::string(), WFlags&lt; <a class="el" href="classWt_1_1Http_1_1Client.html#66729a402596f1f7bb7ca0581e4d50ef">ClientOption</a> &gt; flags=SupportsAjax)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Starts a Wt session.  <a href="#579207474fa28b9f84c040c524f565d0"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Collection of methods for dealing with a Wt application from a client perspective. <hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="66729a402596f1f7bb7ca0581e4d50ef"></a><!-- doxytag: member="Wt::Http::Client::ClientOption" ref="66729a402596f1f7bb7ca0581e4d50ef" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classWt_1_1Http_1_1Client.html#66729a402596f1f7bb7ca0581e4d50ef">Wt::Http::Client::ClientOption</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Enumeration for client user-agent options. 
<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="66729a402596f1f7bb7ca0581e4d50effe42fa8300bb8004fadf080aec00a9cd"></a><!-- doxytag: member="SupportsAjax" ref="66729a402596f1f7bb7ca0581e4d50effe42fa8300bb8004fadf080aec00a9cd" args="" -->SupportsAjax</em>&nbsp;</td><td>
Flag that indicates supports for AJAX. </td></tr>
</table>
</dl>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="579207474fa28b9f84c040c524f565d0"></a><!-- doxytag: member="Wt::Http::Client::startWtSession" ref="579207474fa28b9f84c040c524f565d0" args="(const std::string &amp;host, const std::string &amp;port, const std::string &amp;path, const std::string &amp;query=std::string(), WFlags&lt; ClientOption &gt; flags=SupportsAjax)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Http::Client::startWtSession           </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>host</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>query</em> = <code>std::string()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WFlags&lt; <a class="el" href="classWt_1_1Http_1_1Client.html#66729a402596f1f7bb7ca0581e4d50ef">ClientOption</a> &gt;&nbsp;</td>
          <td class="paramname"> <em>flags</em> = <code>SupportsAjax</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Starts a Wt session. 
<p>
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.<p>
This function starts a session on the specific <code>host</code>, <code>port</code>, <code>path</code>, and optional <code>query</code>. These correspond to the different parts of a url:<p>
<code><a href="http://">http://</a></code><em>host</em><code>:</code><em>port</em>/<em>path</em><code>?</code><code>query</code>. 
</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:08 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>