ec_httpsrv_request_content_type_get

March 26, 2020 Contributors

Name

ec_httpsrv_request_content_type_get — Gets the content type and charset from the session request

Synopsis

#include "modules/listeners/httpsrv.h"

| int **ec_httpsrv_request_content_type_get** ( | sess, |   |
|   | content_type, |   |
|   | charset); |   |

ec_httpsrv_session * <var class="pdparam">sess</var>;
const char ** <var class="pdparam">content_type</var>;
const char ** <var class="pdparam">charset</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.

Gets the content type and charset from the session request.

Parameters

sess

the session to interrogate

content_type

returns the content type

charset

returns the charset

Return Values

0 on success, ENOENT if the content type header was missing from the request, or some other errno value for other error conditions.

The returned strings are valid for the lifetime of the request.