Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Called by the µC/HTTP-client core when body's data of the HTTP response is received.

The parameter HTTPc_PARAM_TYPE_RESP_BODY_HOOK must be set up using the function HTTPc_ReqSetParam() for the hook function to be called.

Prototype

          CPU_INT32U  HTTPc_RespBodyHook (HTTPc_CONN_OBJ     *p_conn_obj,
                                          HTTPc_REQ_OBJ      *p_req_obj,
                                          HTTP_CONTENT_TYPE   content_type,
                                          void               *p_data,
                                          CPU_INT32U          data_len,
                                          CPU_BOOLEAN         last_chunk);

Arguments

p_conn_obj

Pointer to the current HTTPc Connection Object.

p_req_obj

Pointer to the current HTTPc Request Object.

content_type

HTTP Content Type of the HTTP Response body's data.

p_data

Pointer to a data piece of the HTTP Response body.

p_data_len

Length of the data piece received.

last_chunk

DEF_YES, if this is the last piece of data.

DEF_NO,  if more data is up coming.

Return Values

The number of bytes read during the callback. 

Required Configuration

None.

Notes / Warnings

None.

Example Template

  • No labels