t_httpc_response_hdr_cb


The t_httpc_response_hdr_cb definition specifies the format of the callback function that is called when a response was received.

Format

typedef t_httpc_ret ( * t_httpc_response_hdr_cb )( 
    uint16_t                    http_req_hdl,
    const char_t * const        p_headers,
    const t_httpc_resp_info *   p_resp_info )

Arguments

Parameter Description Type
http_req_hdl The handle of the current request. uint16_t
p_headers A pointer to the buffer that contains the response headers. char_t *
p_resp_info A pointer to the response information structure. t_httpc_resp_info *

Return Codes

Code Description
HTTPC_SUCCESS Successful execution.
HTTPC_ERROR Operation failed.