mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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:
parent
dcb34c5ffa
commit
52cd89698e
@ -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);
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user