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

NAME

6       ne_set_request_body_buffer, ne_set_request_body_fd - include a message
7       body with a request
8

SYNOPSIS

10       #include <ne_request.h>
11
12       void ne_set_request_body_buffer(ne_request *req, const char *buf,
13                                       size_t count);
14
15       int ne_set_request_body_fd(ne_request *req, int fd, ne_off_t begin,
16                                  ne_off_t length);
17

DESCRIPTION

19       The ne_set_request_body_buffer function specifies that a message body
20       should be included with the body, which is stored in the count bytes
21       buffer buf.
22
23       The ne_set_request_body_fd function can be used to include a message
24       body with a request which is read from a file descriptor. The body is
25       read from the file descriptor fd, which must be a associated with a
26       seekable file (not a pipe, socket, or FIFO).  count bytes are read,
27       beginning at offset begin (hence, passing begin as zero means the body
28       is read from the beginning of the file).
29
30       For all the above functions, the source of the request body must
31       survive until the request has been dispatched; neither the memory
32       buffer passed to ne_set_request_body_buffer nor the file descriptor
33       passed to ne_set_request_body_fd are copied internally.
34

SEE ALSO

36       ne_request_create
37

AUTHOR

39       Joe Orton <neon@lists.manyfish.co.uk>
40           Author.
41
43neon 0.32.2                     12 January 2022        NE_SET_REQUEST_BODY_(3)
Impressum