File: apreq__env_8h.html

package info (click to toggle)
libapreq2-perl 2.04-dev-1sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,700 kB
  • ctags: 1,508
  • sloc: sh: 8,103; ansic: 5,557; perl: 2,842; cpp: 1,052; makefile: 234
file content (969 lines) | stat: -rw-r--r-- 44,811 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
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
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
<html>
<head>
  <link rel="stylesheet" type="text/css" href="dox.css" />
  <title>libapreq2-2.04-dev: libapreq2: src/apreq_env.h File Reference</title> 
</head>
<body>
<div id="page-header">
<p class="menu">
   <a href="http://www.apache.org/">Apache Software Foundation</a> &gt; <a href="http://httpd.apache.org">HTTP Server Project</a> &gt;
<a href="http://httpd.apache.org/apreq/">Request Library Subproject</a></p>
<p class="apache">Apache HTTP Server Request Library</p>
<img alt="" src="feather.gif" /></div>
<!-- Generated by Doxygen 1.3.8 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<h1>src/apreq_env.h File Reference</h1>Logging and environment (module) declarations. <a href="#_details">More...</a>
<p>
<code>#include "<a class="el" href="apreq__params_8h-source.html">apreq_params.h</a>"</code><br>
<code>#include "<a class="el" href="apreq__cookie_8h-source.html">apreq_cookie.h</a>"</code><br>
<code>#include &lt;stdarg.h&gt;</code><br>

<p>
<a href="apreq__env_8h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>struct &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structapreq__env__t.html">apreq_env_t</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Vtable describing the necessary environment functions.  <a href="structapreq__env__t.html#_details">More...</a><br></td></tr>
<tr><td colspan=2><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a0" doxytag="apreq_env.h::APREQ_LOG_EMERG" ></a>
#define&nbsp;</td><td class="memItemRight" valign=bottom><b>APREQ_LOG_EMERG</b>&nbsp;&nbsp;&nbsp;0</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a1" doxytag="apreq_env.h::APREQ_LOG_ALERT" ></a>
#define&nbsp;</td><td class="memItemRight" valign=bottom><b>APREQ_LOG_ALERT</b>&nbsp;&nbsp;&nbsp;1</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a2" doxytag="apreq_env.h::APREQ_LOG_CRIT" ></a>
#define&nbsp;</td><td class="memItemRight" valign=bottom><b>APREQ_LOG_CRIT</b>&nbsp;&nbsp;&nbsp;2</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a3" doxytag="apreq_env.h::APREQ_LOG_ERR" ></a>
#define&nbsp;</td><td class="memItemRight" valign=bottom><b>APREQ_LOG_ERR</b>&nbsp;&nbsp;&nbsp;3</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a4" doxytag="apreq_env.h::APREQ_LOG_WARNING" ></a>
#define&nbsp;</td><td class="memItemRight" valign=bottom><b>APREQ_LOG_WARNING</b>&nbsp;&nbsp;&nbsp;4</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a5" doxytag="apreq_env.h::APREQ_LOG_NOTICE" ></a>
#define&nbsp;</td><td class="memItemRight" valign=bottom><b>APREQ_LOG_NOTICE</b>&nbsp;&nbsp;&nbsp;5</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a6" doxytag="apreq_env.h::APREQ_LOG_INFO" ></a>
#define&nbsp;</td><td class="memItemRight" valign=bottom><b>APREQ_LOG_INFO</b>&nbsp;&nbsp;&nbsp;6</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a7" doxytag="apreq_env.h::APREQ_LOG_DEBUG" ></a>
#define&nbsp;</td><td class="memItemRight" valign=bottom><b>APREQ_LOG_DEBUG</b>&nbsp;&nbsp;&nbsp;7</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a8" doxytag="apreq_env.h::APREQ_LOG_LEVELMASK" ></a>
#define&nbsp;</td><td class="memItemRight" valign=bottom><b>APREQ_LOG_LEVELMASK</b>&nbsp;&nbsp;&nbsp;7</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a9" doxytag="apreq_env.h::APREQ_LOG_MARK" ></a>
#define&nbsp;</td><td class="memItemRight" valign=bottom><b>APREQ_LOG_MARK</b>&nbsp;&nbsp;&nbsp;__FILE__ , __LINE__</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a10" doxytag="apreq_env.h::APREQ_DEBUG" ></a>
#define&nbsp;</td><td class="memItemRight" valign=bottom><b>APREQ_DEBUG</b>&nbsp;&nbsp;&nbsp;APREQ_LOG_MARK, APREQ_LOG_DEBUG,</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a11" doxytag="apreq_env.h::APREQ_WARN" ></a>
#define&nbsp;</td><td class="memItemRight" valign=bottom><b>APREQ_WARN</b>&nbsp;&nbsp;&nbsp;APREQ_LOG_MARK, APREQ_LOG_WARNING,</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a12" doxytag="apreq_env.h::APREQ_ERROR" ></a>
#define&nbsp;</td><td class="memItemRight" valign=bottom><b>APREQ_ERROR</b>&nbsp;&nbsp;&nbsp;APREQ_LOG_MARK, APREQ_LOG_ERR,</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="apreq__env_8h.html#a13">apreq_env_content_type</a>(env)&nbsp;&nbsp;&nbsp;apreq_env_header_in(env, "Content-Type")</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="apreq__env_8h.html#a14">apreq_env_cookie</a>(env)&nbsp;&nbsp;&nbsp;apreq_env_header_in(env, "Cookie")</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="apreq__env_8h.html#a15">apreq_env_cookie2</a>(env)&nbsp;&nbsp;&nbsp;apreq_env_header_in(env, "Cookie2")</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="apreq__env_8h.html#a16">apreq_env_set_cookie</a>(e, s)&nbsp;&nbsp;&nbsp;apreq_env_header_out(e,"Set-Cookie",s)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="apreq__env_8h.html#a17">apreq_env_set_cookie2</a>(e, s)&nbsp;&nbsp;&nbsp;apreq_env_header_out(e,"Set-Cookie2",s)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="apreq__env_8h.html#a18">APREQ_ENV_MODULE</a>(pre, name, mmn)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="apreq__env_8h.html#a19">apreq_env_name</a>&nbsp;&nbsp;&nbsp;(apreq_env_module(NULL)-&gt;name)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="apreq__env_8h.html#a20">apreq_env_magic_number</a>&nbsp;&nbsp;&nbsp;(apreq_env_module(NULL)-&gt;magic_number)</td></tr>

<tr><td colspan=2><br><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>typedef <a class="el" href="structapreq__env__t.html">apreq_env_t</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="apreq__env_8h.html#a21">apreq_env_t</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Vtable describing the necessary environment functions.  <a href="#a21"></a><br></td></tr>
<tr><td colspan=2><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="apreq__env_8h.html#a22">apreq_log</a> (const char *file, int line, int level, <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__errno_8h.html#ga0">apr_status_t</a> status, void *env, const char *fmt,...)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__pools_8h.html#ga0">apr_pool_t</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="apreq__env_8h.html#a23">apreq_env_pool</a> (void *env)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structapreq__jar__t.html">apreq_jar_t</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="apreq__env_8h.html#a24">apreq_env_jar</a> (void *env, <a class="el" href="structapreq__jar__t.html">apreq_jar_t</a> *jar)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structapreq__request__t.html">apreq_request_t</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="apreq__env_8h.html#a25">apreq_env_request</a> (void *env, <a class="el" href="structapreq__request__t.html">apreq_request_t</a> *req)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>const char *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="apreq__env_8h.html#a26">apreq_env_query_string</a> (void *env)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>const char *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="apreq__env_8h.html#a27">apreq_env_header_in</a> (void *env, const char *name)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__errno_8h.html#ga0">apr_status_t</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="apreq__env_8h.html#a28">apreq_env_header_out</a> (void *env, const char *name, char *val)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__errno_8h.html#ga0">apr_status_t</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="apreq__env_8h.html#a29">apreq_env_read</a> (void *env, <a class="elRef" doxygen="apu.tag:http://apr.apache.org/docs/apr-util/" href="http://apr.apache.org/docs/apr-util/group__APR__Util__Bucket__Brigades.html#gga111">apr_read_type_e</a> block, <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr_8h.html#ga9">apr_off_t</a> bytes)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>const char *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="apreq__env_8h.html#a30">apreq_env_temp_dir</a> (void *env, const char *path)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr_8h.html#ga9">apr_off_t</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="apreq__env_8h.html#a31">apreq_env_max_body</a> (void *env, <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr_8h.html#ga9">apr_off_t</a> bytes)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr_8h.html#ga8">apr_ssize_t</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="apreq__env_8h.html#a32">apreq_env_max_brigade</a> (void *env, <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr_8h.html#ga8">apr_ssize_t</a> bytes)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="structapreq__env__t.html">apreq_env_t</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="apreq__env_8h.html#a33">apreq_env_module</a> (const <a class="el" href="structapreq__env__t.html">apreq_env_t</a> *mod)</td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Logging and environment (module) declarations. 
<p>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="a13" doxytag="apreq_env.h::apreq_env_content_type" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define apreq_env_content_type          </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">env&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;apreq_env_header_in(env, "Content-Type")</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Fetch the environment's "Content-Type" header. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>env</em>&nbsp;</td><td>The current environment. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The value of the Content-Type header, NULL if not found. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a14" doxytag="apreq_env.h::apreq_env_cookie" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define apreq_env_cookie          </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">env&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;apreq_env_header_in(env, "Cookie")</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Fetch the environment's "Cookie" header. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>env</em>&nbsp;</td><td>The current environment. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The value of the "Cookie" header, NULL if not found. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a15" doxytag="apreq_env.h::apreq_env_cookie2" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define apreq_env_cookie2          </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">env&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;apreq_env_header_in(env, "Cookie2")</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Fetch the environment's "Cookie2" header. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>env</em>&nbsp;</td><td>The current environment. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The value of the "Cookie2" header, NULL if not found. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a20" doxytag="apreq_env.h::apreq_env_magic_number" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define apreq_env_magic_number&nbsp;&nbsp;&nbsp;(apreq_env_module(NULL)-&gt;magic_number)          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The current environment's magic (ie. version) number.     </td>
  </tr>
</table>
<a class="anchor" name="a18" doxytag="apreq_env.h::APREQ_ENV_MODULE" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define APREQ_ENV_MODULE          </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">pre,         <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>name,         <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>mmn&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<b>Value:</b><pre class="fragment"><div><span class="keyword">const</span> <a class="code" href="structapreq__env__t.html">apreq_env_t</a> pre##_module = { \
  name, mmn, pre##_log, pre##_pool, pre##_jar, pre##_request,               \
  pre##_query_string, pre##_header_in, pre##_header_out, pre##_read,        \
  pre##_temp_dir, pre##_max_body, pre##_max_brigade }
</div></pre>Convenience macro for defining an environment module by mapping a function prefix to an associated environment structure. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>pre</em>&nbsp;</td><td>Prefix to define new environment. All attributes of the <a class="el" href="structapreq__env__t.html">apreq_env_t</a> struct are defined with this as their prefix. The generated struct is named by appending "_module" to the prefix. </td></tr>
    <tr><td></td><td valign=top><em>name</em>&nbsp;</td><td>Name of this environment. </td></tr>
    <tr><td></td><td valign=top><em>mmn</em>&nbsp;</td><td>Magic number (i.e. version number) of this environment. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a19" doxytag="apreq_env.h::apreq_env_name" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define apreq_env_name&nbsp;&nbsp;&nbsp;(apreq_env_module(NULL)-&gt;name)          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The current environment's name.     </td>
  </tr>
</table>
<a class="anchor" name="a16" doxytag="apreq_env.h::apreq_env_set_cookie" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define apreq_env_set_cookie          </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">e,         <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>s&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;apreq_env_header_out(e,"Set-Cookie",s)</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Add a "Set-Cookie" header to the outgoing response headers. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>e</em>&nbsp;</td><td>The current environment. </td></tr>
    <tr><td></td><td valign=top><em>s</em>&nbsp;</td><td>The cookie string. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>APR_SUCCESS on success, error code otherwise. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a17" doxytag="apreq_env.h::apreq_env_set_cookie2" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define apreq_env_set_cookie2          </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">e,         <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>s&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;apreq_env_header_out(e,"Set-Cookie2",s)</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Add a "Set-Cookie2" header to the outgoing response headers. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>e</em>&nbsp;</td><td>The current environment. </td></tr>
    <tr><td></td><td valign=top><em>s</em>&nbsp;</td><td>The cookie string. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>APR_SUCCESS on success, error code otherwise. </dd></dl>
    </td>
  </tr>
</table>
<hr><h2>Typedef Documentation</h2>
<a class="anchor" name="a21" doxytag="apreq_env.h::apreq_env_t" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> typedef struct <a class="el" href="structapreq__env__t.html">apreq_env_t</a>  <a class="el" href="structapreq__env__t.html">apreq_env_t</a>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Vtable describing the necessary environment functions. 
<p>
This must be fully defined for libapreq2 to operate properly in a given environment. Normally it is set once, with an <a class="el" href="apreq__env_8h.html#a33">apreq_env_module()</a> call during process initialization, and should remain fixed thereafter.     </td>
  </tr>
</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="a27" doxytag="apreq_env.h::apreq_env_header_in" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const char* apreq_env_header_in           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void *&nbsp;</td>
          <td class="mdname" nowrap> <em>env</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap> <em>name</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Fetch the header value (joined by ", " if there are multiple headers) for a given header name. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>env</em>&nbsp;</td><td>The current environment. </td></tr>
    <tr><td></td><td valign=top><em>name</em>&nbsp;</td><td>The header name. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The value of the header, NULL if not found. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a28" doxytag="apreq_env.h::apreq_env_header_out" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__errno_8h.html#ga0">apr_status_t</a> apreq_env_header_out           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void *&nbsp;</td>
          <td class="mdname" nowrap> <em>env</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>char *&nbsp;</td>
          <td class="mdname" nowrap> <em>val</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Add a header field to the environment's outgoing response headers <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>env</em>&nbsp;</td><td>The current environment. </td></tr>
    <tr><td></td><td valign=top><em>name</em>&nbsp;</td><td>The name of the outgoing header. </td></tr>
    <tr><td></td><td valign=top><em>val</em>&nbsp;</td><td>Value of the outgoing header. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>APR_SUCCESS on success, error code otherwise. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a24" doxytag="apreq_env.h::apreq_env_jar" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="structapreq__jar__t.html">apreq_jar_t</a>* apreq_env_jar           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void *&nbsp;</td>
          <td class="mdname" nowrap> <em>env</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="structapreq__jar__t.html">apreq_jar_t</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>jar</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Get/set the jar currently associated to the environment. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>env</em>&nbsp;</td><td>The current environment. </td></tr>
    <tr><td></td><td valign=top><em>jar</em>&nbsp;</td><td>New Jar to associate. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The previous jar associated to the environment. jar == NULL gets the current jar, which will remain associated after the call. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a31" doxytag="apreq_env.h::apreq_env_max_body" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr_8h.html#ga9">apr_off_t</a> apreq_env_max_body           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void *&nbsp;</td>
          <td class="mdname" nowrap> <em>env</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr_8h.html#ga9">apr_off_t</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>bytes</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Get/set the current max_body setting. This is the maximum amount of bytes that will be read into the environment's parser. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>env</em>&nbsp;</td><td>The current environment. </td></tr>
    <tr><td></td><td valign=top><em>bytes</em>&nbsp;</td><td>The new max_body setting. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The previous max_body setting. Note: a call using bytes == -1 fetches the current max_body setting without modifying it. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a32" doxytag="apreq_env.h::apreq_env_max_brigade" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr_8h.html#ga8">apr_ssize_t</a> apreq_env_max_brigade           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void *&nbsp;</td>
          <td class="mdname" nowrap> <em>env</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr_8h.html#ga8">apr_ssize_t</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>bytes</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Get/set the current max_brigade setting. This is the maximum amount of heap-allocated buckets libapreq2 will use for its brigades. If additional buckets are necessary, they will be created from a temporary file. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>env</em>&nbsp;</td><td>The current environment. </td></tr>
    <tr><td></td><td valign=top><em>bytes</em>&nbsp;</td><td>The new max_brigade setting. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The previous max_brigade setting. Note: a call using bytes == -1 fetches the current max_brigade setting without modifying it. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a33" doxytag="apreq_env.h::apreq_env_module" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const <a class="el" href="structapreq__env__t.html">apreq_env_t</a>* apreq_env_module           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="structapreq__env__t.html">apreq_env_t</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>mod</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Get/set function for the active environment stucture. Usually this is called only once per process, to define the correct environment. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>mod</em>&nbsp;</td><td>The new active environment. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The previous active environment. Note: a call using mod == NULL fetches the current environment module without modifying it. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a23" doxytag="apreq_env.h::apreq_env_pool" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__pools_8h.html#ga0">apr_pool_t</a>* apreq_env_pool           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>env</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Pool associated with the environment. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>env</em>&nbsp;</td><td>The current environment </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The associated pool. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a26" doxytag="apreq_env.h::apreq_env_query_string" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const char* apreq_env_query_string           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>env</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Fetch the query string. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>env</em>&nbsp;</td><td>The current environment. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The query string. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a29" doxytag="apreq_env.h::apreq_env_read" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__errno_8h.html#ga0">apr_status_t</a> apreq_env_read           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void *&nbsp;</td>
          <td class="mdname" nowrap> <em>env</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="elRef" doxygen="apu.tag:http://apr.apache.org/docs/apr-util/" href="http://apr.apache.org/docs/apr-util/group__APR__Util__Bucket__Brigades.html#gga111">apr_read_type_e</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>block</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr_8h.html#ga9">apr_off_t</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>bytes</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Read data from the environment and into the current active parser. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>env</em>&nbsp;</td><td>The current environment. </td></tr>
    <tr><td></td><td valign=top><em>block</em>&nbsp;</td><td>Read type (APR_READ_BLOCK or APR_READ_NONBLOCK). </td></tr>
    <tr><td></td><td valign=top><em>bytes</em>&nbsp;</td><td>Maximum number of bytes to read. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>APR_INCOMPLETE if there's more data to read, APR_SUCCESS if everything was read &amp; parsed successfully, error code otherwise. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a25" doxytag="apreq_env.h::apreq_env_request" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="structapreq__request__t.html">apreq_request_t</a>* apreq_env_request           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void *&nbsp;</td>
          <td class="mdname" nowrap> <em>env</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="structapreq__request__t.html">apreq_request_t</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>req</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Get/set the request currently associated to the environment. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>env</em>&nbsp;</td><td>The current environment. </td></tr>
    <tr><td></td><td valign=top><em>req</em>&nbsp;</td><td>New request to associate. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The previous request associated to the environment. req == NULL gets the current request, which will remain associated after the call. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a30" doxytag="apreq_env.h::apreq_env_temp_dir" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const char* apreq_env_temp_dir           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void *&nbsp;</td>
          <td class="mdname" nowrap> <em>env</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap> <em>path</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Get/set the current temporary directory. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>env</em>&nbsp;</td><td>The current environment. </td></tr>
    <tr><td></td><td valign=top><em>path</em>&nbsp;</td><td>The full pathname of the new directory. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The path of the previous temporary directory. Note: a call using path==NULL fetches the current directory without resetting it to NULL. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a22" doxytag="apreq_env.h::apreq_log" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void apreq_log           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname" nowrap> <em>file</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>line</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>level</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__errno_8h.html#ga0">apr_status_t</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>status</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>void *&nbsp;</td>
          <td class="mdname" nowrap> <em>env</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap> <em>fmt</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>&nbsp;</td>
          <td class="mdname" nowrap> <em>...</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Analog of Apache's ap_log_rerror(). <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>file</em>&nbsp;</td><td>Filename to list in the log message. </td></tr>
    <tr><td></td><td valign=top><em>line</em>&nbsp;</td><td>Line number from the file. </td></tr>
    <tr><td></td><td valign=top><em>level</em>&nbsp;</td><td>Log level. </td></tr>
    <tr><td></td><td valign=top><em>status</em>&nbsp;</td><td>Status code. </td></tr>
    <tr><td></td><td valign=top><em>env</em>&nbsp;</td><td>Current environment. </td></tr>
    <tr><td></td><td valign=top><em>fmt</em>&nbsp;</td><td>Format string for the log message. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<div id="footer">
<p class="apache">
Copyright &copy; 2003-2004 <a href="http://www.apache.org">The Apache Software Foundation</a>.<br/>
See <a href="LICENSE.html">LICENSE</a>.</p>
<p class="menu">
<span style="color:#aaa">page generated by <a href="http://www.doxygen.org/"><code>doxygen</code></a>
version 1.3.8 on 30 Aug 2004</span>
</p>
</div>
</body>
</html>