feat(esp_http_client): Added http method REPORT

Added support http REPORT method and tested it using local server.
Added test case for REPOPRT method in esp_http_client_example.c
The URL(httpbin.org) does not support for /report endpoint.

Closes https://github.com/espressif/esp-idf/issues/14147
This commit is contained in:
hrushikesh.bhosale 2024-07-18 15:34:21 +05:30
parent dcb34c5ffa
commit 52cd89698e
2 changed files with 3 additions and 1 deletions

View File

@ -184,7 +184,8 @@ static const char *HTTP_METHOD_MAPPING[] = {
"UNLOCK", "UNLOCK",
"PROPFIND", "PROPFIND",
"PROPPATCH", "PROPPATCH",
"MKCOL" "MKCOL",
"REPORT"
}; };
static esp_err_t esp_http_client_request_send(esp_http_client_handle_t client, int write_len); static esp_err_t esp_http_client_request_send(esp_http_client_handle_t client, int write_len);

View File

@ -116,6 +116,7 @@ typedef enum {
HTTP_METHOD_PROPFIND, /*!< HTTP PROPFIND Method */ HTTP_METHOD_PROPFIND, /*!< HTTP PROPFIND Method */
HTTP_METHOD_PROPPATCH, /*!< HTTP PROPPATCH Method */ HTTP_METHOD_PROPPATCH, /*!< HTTP PROPPATCH Method */
HTTP_METHOD_MKCOL, /*!< HTTP MKCOL Method */ HTTP_METHOD_MKCOL, /*!< HTTP MKCOL Method */
HTTP_METHOD_REPORT, /*!< HTTP REPORT Method */
HTTP_METHOD_MAX, HTTP_METHOD_MAX,
} esp_http_client_method_t; } esp_http_client_method_t;