t_httpc_resp_close_cb
The t_httpc_resp_close_cb definition specifies the format of the callback function that is called when all response data has been received. This can be used to close a file or to release any other resource.
Note: This function is always called from the same task context as t_httpc_resp_open_cb().
Format
typedef t_httpc_ret ( * t_httpc_resp_close_cb ) (
uint16_t http_req_hdl,
const t_httpc_user_hdl hdl )
Arguments
Parameter | Description | Type |
---|---|---|
http_req_hdl | The handle of the current request. | uint16_t |
hdl | The internal handle returned by t_httpc_resp_open_cb(). | t_httpc_user_hdl |
Return Codes
Code | Description |
---|---|
HTTPC_SUCCESS | Successful execution. |
HTTPC_ERROR | Operation failed. |