feat(esp_http_client): added event HTTP_EVENT_ON_STATUS_CODE

This commit added event HTTP_EVENT_ON_STATUS_CODE and
acquire response status code before header or data.
This commit is contained in:
nilesh.kale
2025-06-30 17:20:00 +05:30
parent 29ea09ffa0
commit 5cc874068d
9 changed files with 22 additions and 0 deletions

View File

@@ -117,6 +117,8 @@ esp_err_t _http_event_handler(esp_http_client_event_t *evt)
case HTTP_EVENT_REDIRECT:
ESP_LOGE(TAG, "HTTP_EVENT_REDIRECT: Not supported(%d)", esp_http_client_get_status_code(evt->client));
break;
default:
break;
}
return ESP_OK;
}