1NE_SET_REQUEST_FLAG(3)        neon API reference        NE_SET_REQUEST_FLAG(3)
2
3
4

NAME

6       ne_set_request_flag, ne_get_request_flag - set and retrieve per-request
7       flags
8

SYNOPSIS

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

DESCRIPTION

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           enable this flag to use the "Expect: 100-continue" feature of
26           HTTP/1.1, which allows the server to process request headers
27           without reading the entire request body. This saves time and
28           bandwidth if the server gives an authentication challenge
29           (requiring the request to be resent), but has interoperability
30           problems with some older servers.
31
32       NE_REQFLAG_IDEMPOTENT
33           disable this flag if the request uses a non-idempotent method such
34           as POST
35

RETURN VALUE

37       The ne_get_request_flag function returns zero if a flag is disabled,
38       less than zero if the flag is not supported, or greater than zero if
39       the flag is enabled.
40

SEE ALSO

42       ne_request_create.
43

AUTHOR

45       Joe Orton <neon@lists.manyfish.co.uk>
46           Author.
47
49neon 0.32.2                     12 January 2022         NE_SET_REQUEST_FLAG(3)
Impressum