1NE_SET_REQUEST_FLAG(3) neon API reference NE_SET_REQUEST_FLAG(3)
2
3
4
6 ne_set_request_flag, ne_get_request_flag - set and retrieve per-request
7 flags
8
10 #include <ne_request.h>
11
12 void ne_set_request_flag(ne_request *req, ne_request_flag flag,
13 int value);
14
15 int ne_get_request_flag(ne_request *req, ne_request_flag flag);
16
18 The ne_set_request_flag function enables or disables a per-request
19 flag. Passing a non-zero value argument enables the flag, and zero
20 disables it.
21
22 The following flags are defined:
23
24 NE_REQFLAG_EXPECT100
25 enables this flag to use the "Expect: 100-continue" feature of
26 HTTP/1.1
27
28 NE_REQFLAG_IDEMPOTENT
29 disable this flag if the request uses a non-idempotent method such
30 as POST
31
33 The ne_get_request_flag function returns zero if a flag is disabled,
34 less than zero if the flag is not supported, or greater than zero if
35 the flag is enabled.
36
38 ne_request_create.
39
41 Joe Orton <neon@lists.manyfish.co.uk>
42 Author.
43
45neon 0.29.3 11 January 2010 NE_SET_REQUEST_FLAG(3)