Hook Functions 1

µC/HTTP-client provides a set of hook functions to be notify and to customize the stack behavior for your application needs. Those are only available when the µC/HTTP-client internal task is active (HTTPc_CFG_MODE_ASYNC_TASK_EN). Here a list of description for the different hooks type: 

Hook TypeDescriptionStructure nameSetParam functionMust be set before calling
Connection HooksNotify event about the connection statusHTTPc_CONN_OBJHTTPc_ConnSetParam()HTTPc_ConnOpen()
Request HooksNotify event that happen during a HTTP request and allows the application to customize it.HTTPc_REQ_OBJHTTPc_ReqSetParam()HTTPc_ReqSend()
Hook Functions WebSocketNotify event that happen after a WebSocket Upgrade is successful and gives access to the application to the messages when received.HTTPc_WEBSOCK_OBJHTTPc_WebSockSetParam()

HTTPc_WebSockUpgrade()

WebSocket Message HooksNotify event that happen during a WebSocket Message transmission allows the application to customize it.HTTPc_WEBSOCK_MSG_OBJHTTPc_WebSockMsgSetParam()HTTPc_WebSockSend()

µC/HTTP-client provides a set of hook functions to be notify and to customize the stack behavior for your application needs. Those are only available when the µC/HTTP-client internal task is active (HTTPc_CFG_MODE_ASYNC_TASK_EN). Here a list of description for the different hooks type: 

Hook TypeDescriptionStructure nameSetParam functionMust be set before calling
Connection HooksNotify event about the connection statusHTTPc_CONN_OBJHTTPc_ConnSetParam()HTTPc_ConnOpen()
Request HooksNotify event that happen during a HTTP request and allows the application to customize it.HTTPc_REQ_OBJHTTPc_ReqSetParam()HTTPc_ReqSend()
Hook Functions WebSocketNotify event that happen after a WebSocket Upgrade is successful and gives access to the application to the messages when received.HTTPc_WEBSOCK_OBJHTTPc_WebSockSetParam()

HTTPc_WebSockUpgrade()

WebSocket Message HooksNotify event that happen during a WebSocket Message transmission allows the application to customize it.HTTPc_WEBSOCK_MSG_OBJHTTPc_WebSockMsgSetParam()HTTPc_WebSockSend()