Skip to main content

ec_httpsrv_request_data_get_string

Last updated March 2020

Name

ec_httpsrv_request_data_get_string — Buffers request payload data to memory and returns a string pointer to it

Synopsis

#include "modules/listeners/httpsrv.h"

| int **ec_httpsrv_request_data_get_string** ( | sess, |   | |   | str); |   |

ec_httpsrv_session * <var class="pdparam">sess</var>; string ** <var class="pdparam">str</var>;

Description

Note

This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.

Buffers request payload data to memory and returns a string pointer to it.

Parameters

sess

the session to interrogate

str

returns the string object

Return Values

0 on success, or an errno value indicating the cause of the problem if unsuccessful.

Reading from the io object may result in EAGAIN if the upload has not yet completed.

The system owns the string and will release its resources when the request is marked as complete.

Was this page helpful?