ec_httpsrv_response_string
Name
ec_httpsrv_response_string — Set the session response to an ec_string object
Synopsis
#include "modules/listeners/httpsrv.h"
| int **ec_httpsrv_response_string** (
| sess, | |
| | string)
; | |
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.
Set the session response to an ec_string object.
- sess
-
the session to modify
- string
-
the ec_string
Sets the response payload to the contents of the provided string.
0 if successful, else returns an errno indicating what went wrong. In particular, ENOMEM indicates that insuficient memory was available.