diff --git a/components/esp_http_client/Kconfig b/components/esp_http_client/Kconfig index 2dc015fa73..66d519a760 100644 --- a/components/esp_http_client/Kconfig +++ b/components/esp_http_client/Kconfig @@ -35,4 +35,29 @@ menu "ESP HTTP client" help This config option helps in setting the time in millisecond to wait for event to be posted to the system default event loop. Set it to -1 if you need to set timeout to portMAX_DELAY. + + config ESP_HTTP_CLIENT_SAVE_RESPONSE_HEADERS + bool "Save response headers" + default n + help + This option will enable saving of response headers in esp_http_client component. + When enabled, upto ESP_HTTP_CLIENT_MAX_SAVED_RESPONSE_HEADERS headers are saved. + Enabling this option will increase the memory footprint of the component. + + config ESP_HTTP_CLIENT_MAX_SAVED_RESPONSE_HEADERS + depends on ESP_HTTP_CLIENT_SAVE_RESPONSE_HEADERS + int "Maximum number of response headers" + default 10 + help + This config option helps in setting the maximum number of response headers that + can be saved in esp_http_client component. + + config ESP_HTTP_CLIENT_MAX_RESPONSE_HEADER_SIZE + depends on ESP_HTTP_CLIENT_SAVE_RESPONSE_HEADERS + int "Maximum size of response header" + default 128 + help + This config option helps in setting the maximum size of response header that + can be saved in esp_http_client component. + Note that the same size is used for key and value in the response headers. endmenu diff --git a/examples/protocols/esp_http_client/pytest_esp_http_client.py b/examples/protocols/esp_http_client/pytest_esp_http_client.py index c89c10f25f..a7fa5a55d8 100644 --- a/examples/protocols/esp_http_client/pytest_esp_http_client.py +++ b/examples/protocols/esp_http_client/pytest_esp_http_client.py @@ -64,7 +64,7 @@ def test_examples_protocol_esp_http_client(dut: Dut) -> None: ], indirect=True, ) -@idf_parametrize('target', ['esp32s3'], indirect=['target']) +@idf_parametrize('target', ['esp32'], indirect=['target']) def test_examples_protocol_esp_http_client_dynamic_buffer(dut: Dut) -> None: # test mbedtls dynamic resource # check and log bin size