File: Poco.Net.HTTPResponse.html

package info (click to toggle)
poco-doc 1.3.6-1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 10,076 kB
  • ctags: 9,611
  • sloc: makefile: 31
file content (532 lines) | stat: -rw-r--r-- 35,954 bytes parent folder | download | duplicates (2)
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Class Poco::Net::HTTPResponse</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="author" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="publisher" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="copyright" content="Copyright (c) 2009, Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="language" content="en"/>
<meta name="date" content="2009-11-24"/>
<meta name="generator" content="PocoDoc"/>
<link rel="stylesheet" href="css/styles.css" type="text/css"/>
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0">
<div class="header">
<h1 class="namespace"><a href="Poco.Net.html" class="namespace">Poco::Net</a></h1>
<h1 class="symbol">class HTTPResponse</h1>
</div>
<div class="body">
<p>
<b>Library:</b> Net<br />
<b>Package:</b> HTTP<br />
<b>Header:</b> Poco/Net/HTTPResponse.h</p>
<h2>Description</h2>
<div class="description">
<p>This class encapsulates an HTTP response message. </p>
<p>In addition to the properties common to all HTTP messages, a HTTP response has status code and a reason phrase. </p>
</div>
<h2>Inheritance</h2>
<p><b>Direct Base Classes: </b><a href="Poco.Net.HTTPMessage.html" title="class Poco::Net::HTTPMessage">HTTPMessage</a></p>
<p><b>All Base Classes: </b><a href="Poco.Net.HTTPMessage.html" title="class Poco::Net::HTTPMessage">HTTPMessage</a>, <a href="Poco.Net.MessageHeader.html" title="class Poco::Net::MessageHeader">MessageHeader</a>, <a href="Poco.Net.NameValueCollection.html" title="class Poco::Net::NameValueCollection">NameValueCollection</a></p>
<p><b>Known Derived Classes: </b><a href="Poco.Net.HTTPServerResponse.html" title="class Poco::Net::HTTPServerResponse">HTTPServerResponse</a>, <a href="Poco.Net.HTTPServerResponseImpl.html" title="class Poco::Net::HTTPServerResponseImpl">HTTPServerResponseImpl</a></p>
<h2>Member Summary</h2>
<p><b>Member Functions: </b><a href="Poco.Net.HTTPResponse.html#12964" title="Poco::Net::HTTPResponse::addCookie()">addCookie</a>, <a href="Poco.Net.HTTPResponse.html#12966" title="Poco::Net::HTTPResponse::getCookies()">getCookies</a>, <a href="Poco.Net.HTTPResponse.html#12963" title="Poco::Net::HTTPResponse::getDate()">getDate</a>, <a href="Poco.Net.HTTPResponse.html#12955" title="Poco::Net::HTTPResponse::getReason()">getReason</a>, <a href="Poco.Net.HTTPResponse.html#12972" title="Poco::Net::HTTPResponse::getReasonForStatus()">getReasonForStatus</a>, <a href="Poco.Net.HTTPResponse.html#12950" title="Poco::Net::HTTPResponse::getStatus()">getStatus</a>, <a href="Poco.Net.HTTPResponse.html#12970" title="Poco::Net::HTTPResponse::read()">read</a>, <a href="Poco.Net.HTTPResponse.html#12961" title="Poco::Net::HTTPResponse::setDate()">setDate</a>, <a href="Poco.Net.HTTPResponse.html#12953" title="Poco::Net::HTTPResponse::setReason()">setReason</a>, <a href="Poco.Net.HTTPResponse.html#12948" title="Poco::Net::HTTPResponse::setStatus()">setStatus</a>, <a href="Poco.Net.HTTPResponse.html#12956" title="Poco::Net::HTTPResponse::setStatusAndReason()">setStatusAndReason</a>, <a href="Poco.Net.HTTPResponse.html#12968" title="Poco::Net::HTTPResponse::write()">write</a></p>
<p><b>Inherited Functions: </b><a href="Poco.Net.NameValueCollection.html#14067" title="Poco::Net::NameValueCollection::add()">add</a>, <a href="Poco.Net.NameValueCollection.html#14079" title="Poco::Net::NameValueCollection::begin()">begin</a>, <a href="Poco.Net.NameValueCollection.html#14085" title="Poco::Net::NameValueCollection::clear()">clear</a>, <a href="Poco.Net.NameValueCollection.html#14081" title="Poco::Net::NameValueCollection::empty()">empty</a>, <a href="Poco.Net.NameValueCollection.html#14080" title="Poco::Net::NameValueCollection::end()">end</a>, <a href="Poco.Net.NameValueCollection.html#14083" title="Poco::Net::NameValueCollection::erase()">erase</a>, <a href="Poco.Net.NameValueCollection.html#14077" title="Poco::Net::NameValueCollection::find()">find</a>, <a href="Poco.Net.NameValueCollection.html#14070" title="Poco::Net::NameValueCollection::get()">get</a>, <a href="Poco.Net.HTTPMessage.html#12781" title="Poco::Net::HTTPMessage::getChunkedTransferEncoding()">getChunkedTransferEncoding</a>, <a href="Poco.Net.HTTPMessage.html#12775" title="Poco::Net::HTTPMessage::getContentLength()">getContentLength</a>, <a href="Poco.Net.HTTPMessage.html#12786" title="Poco::Net::HTTPMessage::getContentType()">getContentType</a>, <a href="Poco.Net.HTTPMessage.html#12789" title="Poco::Net::HTTPMessage::getKeepAlive()">getKeepAlive</a>, <a href="Poco.Net.HTTPMessage.html#12778" title="Poco::Net::HTTPMessage::getTransferEncoding()">getTransferEncoding</a>, <a href="Poco.Net.HTTPMessage.html#12772" title="Poco::Net::HTTPMessage::getVersion()">getVersion</a>, <a href="Poco.Net.NameValueCollection.html#14075" title="Poco::Net::NameValueCollection::has()">has</a>, <a href="Poco.Net.NameValueCollection.html#14062" title="Poco::Net::NameValueCollection::operator()">operator</a>, <a href="Poco.Net.MessageHeader.html#13915" title="Poco::Net::MessageHeader::operator =()">operator&nbsp;=</a>, <a href="Poco.Net.MessageHeader.html#13933" title="Poco::Net::MessageHeader::quote()">quote</a>, <a href="Poco.Net.MessageHeader.html#13919" title="Poco::Net::MessageHeader::read()">read</a>, <a href="Poco.Net.NameValueCollection.html#14064" title="Poco::Net::NameValueCollection::set()">set</a>, <a href="Poco.Net.HTTPMessage.html#12779" title="Poco::Net::HTTPMessage::setChunkedTransferEncoding()">setChunkedTransferEncoding</a>, <a href="Poco.Net.HTTPMessage.html#12773" title="Poco::Net::HTTPMessage::setContentLength()">setContentLength</a>, <a href="Poco.Net.HTTPMessage.html#12784" title="Poco::Net::HTTPMessage::setContentType()">setContentType</a>, <a href="Poco.Net.HTTPMessage.html#12787" title="Poco::Net::HTTPMessage::setKeepAlive()">setKeepAlive</a>, <a href="Poco.Net.HTTPMessage.html#12776" title="Poco::Net::HTTPMessage::setTransferEncoding()">setTransferEncoding</a>, <a href="Poco.Net.HTTPMessage.html#12770" title="Poco::Net::HTTPMessage::setVersion()">setVersion</a>, <a href="Poco.Net.NameValueCollection.html#14082" title="Poco::Net::NameValueCollection::size()">size</a>, <a href="Poco.Net.MessageHeader.html#13921" title="Poco::Net::MessageHeader::splitElements()">splitElements</a>, <a href="Poco.Net.MessageHeader.html#13925" title="Poco::Net::MessageHeader::splitParameters()">splitParameters</a>, <a href="Poco.Net.NameValueCollection.html#14060" title="Poco::Net::NameValueCollection::swap()">swap</a>, <a href="Poco.Net.MessageHeader.html#13917" title="Poco::Net::MessageHeader::write()">write</a></p>
<h2>Enumerations</h2>
<h3><a name="12893">HTTPStatus</a></h3>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12894">HTTP_CONTINUE</a> = 100</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12895">HTTP_SWITCHING_PROTOCOLS</a> = 101</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12896">HTTP_OK</a> = 200</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12897">HTTP_CREATED</a> = 201</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12898">HTTP_ACCEPTED</a> = 202</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12899">HTTP_NONAUTHORITATIVE</a> = 203</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12900">HTTP_NO_CONTENT</a> = 204</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12901">HTTP_RESET_CONTENT</a> = 205</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12902">HTTP_PARTIAL_CONTENT</a> = 206</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12903">HTTP_MULTIPLE_CHOICES</a> = 300</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12904">HTTP_MOVED_PERMANENTLY</a> = 301</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12905">HTTP_FOUND</a> = 302</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12906">HTTP_SEE_OTHER</a> = 303</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12907">HTTP_NOT_MODIFIED</a> = 304</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12908">HTTP_USEPROXY</a> = 305</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12909">HTTP_TEMPORARY_REDIRECT</a> = 307</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12910">HTTP_BAD_REQUEST</a> = 400</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12911">HTTP_UNAUTHORIZED</a> = 401</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12912">HTTP_PAYMENT_REQUIRED</a> = 402</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12913">HTTP_FORBIDDEN</a> = 403</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12914">HTTP_NOT_FOUND</a> = 404</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12915">HTTP_METHOD_NOT_ALLOWED</a> = 405</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12916">HTTP_NOT_ACCEPTABLE</a> = 406</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12917">HTTP_PROXY_AUTHENTICATION_REQUIRED</a> = 407</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12918">HTTP_REQUEST_TIMEOUT</a> = 408</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12919">HTTP_CONFLICT</a> = 409</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12920">HTTP_GONE</a> = 410</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12921">HTTP_LENGTH_REQUIRED</a> = 411</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12922">HTTP_PRECONDITION_FAILED</a> = 412</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12923">HTTP_REQUESTENTITYTOOLARGE</a> = 413</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12924">HTTP_REQUESTURITOOLONG</a> = 414</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12925">HTTP_UNSUPPORTEDMEDIATYPE</a> = 415</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12926">HTTP_REQUESTED_RANGE_NOT_SATISFIABLE</a> = 416</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12927">HTTP_EXPECTATION_FAILED</a> = 417</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12928">HTTP_INTERNAL_SERVER_ERROR</a> = 500</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12929">HTTP_NOT_IMPLEMENTED</a> = 501</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12930">HTTP_BAD_GATEWAY</a> = 502</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12931">HTTP_SERVICE_UNAVAILABLE</a> = 503</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12932">HTTP_GATEWAY_TIMEOUT</a> = 504</p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="12933">HTTP_VERSION_NOT_SUPPORTED</a> = 505</p>
<div class="description">
<p></p>
</div>
<h2>Constructors</h2>
<h3><a name="12934">HTTPResponse</a></h3>
<p class="decl"><a href="Poco.Net.HTTPResponse.html" title="class Poco::Net::HTTPResponse">HTTPResponse</a>();</p>
<div class="description">
<p>Creates the <a href="Poco.Net.HTTPResponse.html" title="class Poco::Net::HTTPResponse">HTTPResponse</a> with OK status. </p>
</div>
<h3><a name="12942">HTTPResponse</a></h3>
<p class="decl"><a href="Poco.Net.HTTPResponse.html" title="class Poco::Net::HTTPResponse">HTTPResponse</a>(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.HTTPResponse.html#12893" title="enum  Poco::Net::HTTPResponse::HTTPStatus">HTTPStatus</a> status<br />);</p>
<div class="description">
<p>Creates the <a href="Poco.Net.HTTPResponse.html" title="class Poco::Net::HTTPResponse">HTTPResponse</a> with the given status an an appropriate reason phrase. </p>
</div>
<h3><a name="12935">HTTPResponse</a></h3>
<p class="decl"><a href="Poco.Net.HTTPResponse.html" title="class Poco::Net::HTTPResponse">HTTPResponse</a>(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.HTTPResponse.html#12893" title="enum  Poco::Net::HTTPResponse::HTTPStatus">HTTPStatus</a> status,<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; reason<br />);</p>
<div class="description">
<p>Creates the <a href="Poco.Net.HTTPResponse.html" title="class Poco::Net::HTTPResponse">HTTPResponse</a> with the given status and reason phrase. </p>
</div>
<h3><a name="12944">HTTPResponse</a></h3>
<p class="decl"><a href="Poco.Net.HTTPResponse.html" title="class Poco::Net::HTTPResponse">HTTPResponse</a>(<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; version,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.HTTPResponse.html#12893" title="enum  Poco::Net::HTTPResponse::HTTPStatus">HTTPStatus</a> status<br />);</p>
<div class="description">
<p>Creates the <a href="Poco.Net.HTTPResponse.html" title="class Poco::Net::HTTPResponse">HTTPResponse</a> with the given version, status an an appropriate reason phrase. </p>
</div>
<h3><a name="12938">HTTPResponse</a></h3>
<p class="decl"><a href="Poco.Net.HTTPResponse.html" title="class Poco::Net::HTTPResponse">HTTPResponse</a>(<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; version,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.HTTPResponse.html#12893" title="enum  Poco::Net::HTTPResponse::HTTPStatus">HTTPStatus</a> status,<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; reason<br />);</p>
<div class="description">
<p>Creates the <a href="Poco.Net.HTTPResponse.html" title="class Poco::Net::HTTPResponse">HTTPResponse</a> with the given version, status and reason phrase. </p>
</div>
<h2>Destructor</h2>
<h3><a name="12947">~HTTPResponse</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual ~<a href="Poco.Net.HTTPResponse.html" title="class Poco::Net::HTTPResponse">HTTPResponse</a>();</p>
<div class="description">
<p>Destroys the <a href="Poco.Net.HTTPResponse.html" title="class Poco::Net::HTTPResponse">HTTPResponse</a>. </p>
</div>
<h2>Member Functions</h2>
<h3><a name="12964">addCookie</a></h3>
<p class="decl">void addCookie(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Net.HTTPCookie.html" title="class Poco::Net::HTTPCookie">HTTPCookie</a> &amp; cookie<br />);</p>
<div class="description">
<p>Adds the cookie to the response by adding a Set-Cookie header. </p>
</div>
<h3><a name="12966">getCookies</a></h3>
<p class="decl">void getCookies(<br />&nbsp;&nbsp;&nbsp;&nbsp;std::vector &lt; <a href="Poco.Net.HTTPCookie.html" title="class Poco::Net::HTTPCookie">HTTPCookie</a> &gt; &amp; cookies<br />) const;</p>
<div class="description">
<p>Returns a vector with all the cookies set in the response header. </p>
<p>May throw an exception in case of a malformed Set-Cookie header. </p>
</div>
<h3><a name="12963">getDate</a></h3>
<p class="decl"><a href="Poco.Timestamp.html" title="class Poco::Timestamp">Poco::Timestamp</a> getDate() const;</p>
<div class="description">
<p>Returns the value of the Date header. </p>
</div>
<h3><a name="12955">getReason</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">const std::string &amp; getReason() const;</p>
<div class="description">
<p>Returns the HTTP reason phrase. </p>
</div>
<h3><a name="12972">getReasonForStatus</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string &amp; getReasonForStatus(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.HTTPResponse.html#12893" title="enum  Poco::Net::HTTPResponse::HTTPStatus">HTTPStatus</a> status<br />);</p>
<div class="description">
<p>Returns an appropriate reason phrase for the given status code. </p>
</div>
<h3><a name="12950">getStatus</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl"><a href="Poco.Net.HTTPResponse.html#12893" title="enum  Poco::Net::HTTPResponse::HTTPStatus">HTTPStatus</a> getStatus() const;</p>
<div class="description">
<p>Returns the HTTP status code. </p>
</div>
<h3><a name="12970">read</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void read(<br />&nbsp;&nbsp;&nbsp;&nbsp;std::istream &amp; istr<br />);</p>
<div class="description">
<p>Reads the HTTP response from the given input stream. </p>
<p>100 Continue responses are ignored. </p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.Net.MessageHeader.html#13919" title="Poco::Net::MessageHeader::read()">Poco::Net::MessageHeader::read()</a></p></div>
<h3><a name="12961">setDate</a></h3>
<p class="decl">void setDate(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Timestamp.html" title="class Poco::Timestamp">Poco::Timestamp</a> &amp; dateTime<br />);</p>
<div class="description">
<p>Sets the Date header to the given date/time value. </p>
</div>
<h3><a name="12953">setReason</a></h3>
<p class="decl">void setReason(<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; reason<br />);</p>
<div class="description">
<p>Sets the HTTP reason phrase. </p>
</div>
<h3><a name="12948">setStatus</a></h3>
<p class="decl">void setStatus(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.HTTPResponse.html#12893" title="enum  Poco::Net::HTTPResponse::HTTPStatus">HTTPStatus</a> status<br />);</p>
<div class="description">
<p>Sets the HTTP status code. </p>
<p>Does not change the reason phrase. </p>
</div>
<h3><a name="12951">setStatus</a></h3>
<p class="decl">void setStatus(<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; status<br />);</p>
<div class="description">
<p>Sets the HTTP status code. </p>
<p>The string must contain a valid HTTP numerical status code. </p>
</div>
<h3><a name="12956">setStatusAndReason</a></h3>
<p class="decl">void setStatusAndReason(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.HTTPResponse.html#12893" title="enum  Poco::Net::HTTPResponse::HTTPStatus">HTTPStatus</a> status,<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; reason<br />);</p>
<div class="description">
<p>Sets the HTTP status code and reason phrase. </p>
</div>
<h3><a name="12959">setStatusAndReason</a></h3>
<p class="decl">void setStatusAndReason(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.HTTPResponse.html#12893" title="enum  Poco::Net::HTTPResponse::HTTPStatus">HTTPStatus</a> status<br />);</p>
<div class="description">
<p>Sets the HTTP status code and reason phrase. </p>
<p>The reason phrase is set according to the status code. </p>
</div>
<h3><a name="12968">write</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void write(<br />&nbsp;&nbsp;&nbsp;&nbsp;std::ostream &amp; ostr<br />) const;</p>
<div class="description">
<p>Writes the HTTP response to the given output stream. </p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.Net.MessageHeader.html#13917" title="Poco::Net::MessageHeader::write()">Poco::Net::MessageHeader::write()</a></p></div>
<h2>Variables</h2>
<h3><a name="13015">DATE</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#13015" title="Poco::Net::HTTPResponse::DATE">DATE</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12978">HTTP_REASON_ACCEPTED</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12978" title="Poco::Net::HTTPResponse::HTTP_REASON_ACCEPTED">HTTP_REASON_ACCEPTED</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13010">HTTP_REASON_BAD_GATEWAY</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#13010" title="Poco::Net::HTTPResponse::HTTP_REASON_BAD_GATEWAY">HTTP_REASON_BAD_GATEWAY</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12990">HTTP_REASON_BAD_REQUEST</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12990" title="Poco::Net::HTTPResponse::HTTP_REASON_BAD_REQUEST">HTTP_REASON_BAD_REQUEST</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12999">HTTP_REASON_CONFLICT</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12999" title="Poco::Net::HTTPResponse::HTTP_REASON_CONFLICT">HTTP_REASON_CONFLICT</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12974">HTTP_REASON_CONTINUE</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12974" title="Poco::Net::HTTPResponse::HTTP_REASON_CONTINUE">HTTP_REASON_CONTINUE</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12977">HTTP_REASON_CREATED</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12977" title="Poco::Net::HTTPResponse::HTTP_REASON_CREATED">HTTP_REASON_CREATED</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13007">HTTP_REASON_EXPECTATION_FAILED</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#13007" title="Poco::Net::HTTPResponse::HTTP_REASON_EXPECTATION_FAILED">HTTP_REASON_EXPECTATION_FAILED</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12993">HTTP_REASON_FORBIDDEN</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12993" title="Poco::Net::HTTPResponse::HTTP_REASON_FORBIDDEN">HTTP_REASON_FORBIDDEN</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12985">HTTP_REASON_FOUND</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12985" title="Poco::Net::HTTPResponse::HTTP_REASON_FOUND">HTTP_REASON_FOUND</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13012">HTTP_REASON_GATEWAY_TIMEOUT</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#13012" title="Poco::Net::HTTPResponse::HTTP_REASON_GATEWAY_TIMEOUT">HTTP_REASON_GATEWAY_TIMEOUT</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13000">HTTP_REASON_GONE</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#13000" title="Poco::Net::HTTPResponse::HTTP_REASON_GONE">HTTP_REASON_GONE</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13008">HTTP_REASON_INTERNAL_SERVER_ERROR</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#13008" title="Poco::Net::HTTPResponse::HTTP_REASON_INTERNAL_SERVER_ERROR">HTTP_REASON_INTERNAL_SERVER_ERROR</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13001">HTTP_REASON_LENGTH_REQUIRED</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#13001" title="Poco::Net::HTTPResponse::HTTP_REASON_LENGTH_REQUIRED">HTTP_REASON_LENGTH_REQUIRED</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12995">HTTP_REASON_METHOD_NOT_ALLOWED</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12995" title="Poco::Net::HTTPResponse::HTTP_REASON_METHOD_NOT_ALLOWED">HTTP_REASON_METHOD_NOT_ALLOWED</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12984">HTTP_REASON_MOVED_PERMANENTLY</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12984" title="Poco::Net::HTTPResponse::HTTP_REASON_MOVED_PERMANENTLY">HTTP_REASON_MOVED_PERMANENTLY</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12983">HTTP_REASON_MULTIPLE_CHOICES</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12983" title="Poco::Net::HTTPResponse::HTTP_REASON_MULTIPLE_CHOICES">HTTP_REASON_MULTIPLE_CHOICES</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12979">HTTP_REASON_NONAUTHORITATIVE</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12979" title="Poco::Net::HTTPResponse::HTTP_REASON_NONAUTHORITATIVE">HTTP_REASON_NONAUTHORITATIVE</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12996">HTTP_REASON_NOT_ACCEPTABLE</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12996" title="Poco::Net::HTTPResponse::HTTP_REASON_NOT_ACCEPTABLE">HTTP_REASON_NOT_ACCEPTABLE</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12994">HTTP_REASON_NOT_FOUND</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12994" title="Poco::Net::HTTPResponse::HTTP_REASON_NOT_FOUND">HTTP_REASON_NOT_FOUND</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13009">HTTP_REASON_NOT_IMPLEMENTED</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#13009" title="Poco::Net::HTTPResponse::HTTP_REASON_NOT_IMPLEMENTED">HTTP_REASON_NOT_IMPLEMENTED</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12987">HTTP_REASON_NOT_MODIFIED</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12987" title="Poco::Net::HTTPResponse::HTTP_REASON_NOT_MODIFIED">HTTP_REASON_NOT_MODIFIED</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12980">HTTP_REASON_NO_CONTENT</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12980" title="Poco::Net::HTTPResponse::HTTP_REASON_NO_CONTENT">HTTP_REASON_NO_CONTENT</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12976">HTTP_REASON_OK</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12976" title="Poco::Net::HTTPResponse::HTTP_REASON_OK">HTTP_REASON_OK</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12982">HTTP_REASON_PARTIAL_CONTENT</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12982" title="Poco::Net::HTTPResponse::HTTP_REASON_PARTIAL_CONTENT">HTTP_REASON_PARTIAL_CONTENT</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12992">HTTP_REASON_PAYMENT_REQUIRED</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12992" title="Poco::Net::HTTPResponse::HTTP_REASON_PAYMENT_REQUIRED">HTTP_REASON_PAYMENT_REQUIRED</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13002">HTTP_REASON_PRECONDITION_FAILED</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#13002" title="Poco::Net::HTTPResponse::HTTP_REASON_PRECONDITION_FAILED">HTTP_REASON_PRECONDITION_FAILED</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12997">HTTP_REASON_PROXY_AUTHENTICATION_REQUIRED</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12997" title="Poco::Net::HTTPResponse::HTTP_REASON_PROXY_AUTHENTICATION_REQUIRED">HTTP_REASON_PROXY_AUTHENTICATION_REQUIRED</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13006">HTTP_REASON_REQUESTED_RANGE_NOT_SATISFIABLE</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#13006" title="Poco::Net::HTTPResponse::HTTP_REASON_REQUESTED_RANGE_NOT_SATISFIABLE">HTTP_REASON_REQUESTED_RANGE_NOT_SATISFIABLE</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13003">HTTP_REASON_REQUESTENTITYTOOLARGE</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#13003" title="Poco::Net::HTTPResponse::HTTP_REASON_REQUESTENTITYTOOLARGE">HTTP_REASON_REQUESTENTITYTOOLARGE</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13004">HTTP_REASON_REQUESTURITOOLONG</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#13004" title="Poco::Net::HTTPResponse::HTTP_REASON_REQUESTURITOOLONG">HTTP_REASON_REQUESTURITOOLONG</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12998">HTTP_REASON_REQUEST_TIMEOUT</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12998" title="Poco::Net::HTTPResponse::HTTP_REASON_REQUEST_TIMEOUT">HTTP_REASON_REQUEST_TIMEOUT</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12981">HTTP_REASON_RESET_CONTENT</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12981" title="Poco::Net::HTTPResponse::HTTP_REASON_RESET_CONTENT">HTTP_REASON_RESET_CONTENT</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12986">HTTP_REASON_SEE_OTHER</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12986" title="Poco::Net::HTTPResponse::HTTP_REASON_SEE_OTHER">HTTP_REASON_SEE_OTHER</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13011">HTTP_REASON_SERVICE_UNAVAILABLE</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#13011" title="Poco::Net::HTTPResponse::HTTP_REASON_SERVICE_UNAVAILABLE">HTTP_REASON_SERVICE_UNAVAILABLE</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12975">HTTP_REASON_SWITCHING_PROTOCOLS</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12975" title="Poco::Net::HTTPResponse::HTTP_REASON_SWITCHING_PROTOCOLS">HTTP_REASON_SWITCHING_PROTOCOLS</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12989">HTTP_REASON_TEMPORARY_REDIRECT</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12989" title="Poco::Net::HTTPResponse::HTTP_REASON_TEMPORARY_REDIRECT">HTTP_REASON_TEMPORARY_REDIRECT</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12991">HTTP_REASON_UNAUTHORIZED</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12991" title="Poco::Net::HTTPResponse::HTTP_REASON_UNAUTHORIZED">HTTP_REASON_UNAUTHORIZED</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13014">HTTP_REASON_UNKNOWN</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#13014" title="Poco::Net::HTTPResponse::HTTP_REASON_UNKNOWN">HTTP_REASON_UNKNOWN</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13005">HTTP_REASON_UNSUPPORTEDMEDIATYPE</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#13005" title="Poco::Net::HTTPResponse::HTTP_REASON_UNSUPPORTEDMEDIATYPE">HTTP_REASON_UNSUPPORTEDMEDIATYPE</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="12988">HTTP_REASON_USEPROXY</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#12988" title="Poco::Net::HTTPResponse::HTTP_REASON_USEPROXY">HTTP_REASON_USEPROXY</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13013">HTTP_REASON_VERSION_NOT_SUPPORTED</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#13013" title="Poco::Net::HTTPResponse::HTTP_REASON_VERSION_NOT_SUPPORTED">HTTP_REASON_VERSION_NOT_SUPPORTED</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13016">SET_COOKIE</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.HTTPResponse.html#13016" title="Poco::Net::HTTPResponse::SET_COOKIE">SET_COOKIE</a>;</p>
<div class="description">
<p></p>
</div>
<p class="footer">POCO C++ Libraries 1.3.6-all<br />
Copyright &copy; 2009, <a href="http://pocoproject.org/" target="_blank">Applied Informatics Software Engineering GmbH and Contributors</a></p>

</div>
</body>
</html>