Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

ne_set_request_body_buffer (3)

Name

ne_set_request_body_buffer - include a message body with a request

Synopsis

#include <ne_request.h>

void ne_set_request_body_buffer(ne_request *req, const char *buf,
size_t count);

int ne_set_request_body_fd(ne_request *req, int fd, ne_off_t begin,
ne_off_t length);

Description

NE_SET_REQUEST_BODY_(3)       neon API reference       NE_SET_REQUEST_BODY_(3)



NAME
       ne_set_request_body_buffer, ne_set_request_body_fd - include a message
       body with a request

SYNOPSIS
       #include <ne_request.h>

       void ne_set_request_body_buffer(ne_request *req, const char *buf,
                                       size_t count);

       int ne_set_request_body_fd(ne_request *req, int fd, ne_off_t begin,
                                  ne_off_t length);

DESCRIPTION
       The ne_set_request_body_buffer function specifies that a message body
       should be included with the body, which is stored in the count bytes
       buffer buf.

       The ne_set_request_body_fd function can be used to include a message
       body with a request which is read from a file descriptor. The body is
       read from the file descriptor fd, which must be a associated with a
       seekable file (not a pipe, socket, or FIFO).  count bytes are read,
       beginning at offset begin (hence, passing begin as zero means the body
       is read from the beginning of the file).

       For all the above functions, the source of the request body must
       survive until the request has been dispatched; neither the memory
       buffer passed to ne_set_request_body_buffer nor the file descriptor
       passed to ne_set_request_body_fd are copied internally.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+------------------+
       |ATTRIBUTE TYPE | ATTRIBUTE VALUE  |
       +---------------+------------------+
       |Availability   | library/neon     |
       +---------------+------------------+
       |Stability      | Volatile         |
       +---------------+------------------+

SEE ALSO
       ne_request_create

AUTHOR
       Joe Orton <neon@lists.manyfish.co.uk>
           Author.

COPYRIGHT
NOTES
       Source code for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This software was built from source available at
       https://github.com/oracle/solaris-userland.  The original community
       source was downloaded from
       http://www.webdav.org/neon/neon-0.30.1.tar.gz.

       Further information about this software can be found on the open source
       community website at http://www.webdav.org/neon/.



neon 0.30.1                    23 September 2014       NE_SET_REQUEST_BODY_(3)