pub unsafe extern "C" fn httpd_sess_set_send_override(
    hd: httpd_handle_t,
    sockfd: c_int,
    send_func: httpd_send_func_t
) -> esp_err_t
Expand description

@brief Override web server’s send function (by session FD)

This function overrides the web server’s send function. This same function is used to send out any response to any HTTP request.

@note This API is supposed to be called either from the context of - an http session APIs where sockfd is a valid parameter - a URI handler where sockfd is obtained using httpd_req_to_sockfd()

@param[in] hd HTTPD instance handle @param[in] sockfd Session socket FD @param[in] send_func The send function to be set for this session

@return

  • ESP_OK : On successfully registering override
  • ESP_ERR_INVALID_ARG : Null arguments