esp_http_client: Add methods in esp_http_client_method_t required for WebDAV

Closes: https://github.com/espressif/esp-idf/issues/5402
This commit is contained in:
Shubham Kulkarni 2020-06-10 10:12:13 +05:30
parent b48cc853fc
commit bcfd2f07ab
2 changed files with 15 additions and 1 deletions

View file

@ -151,7 +151,14 @@ static const char *HTTP_METHOD_MAPPING[] = {
"NOTIFY",
"SUBSCRIBE",
"UNSUBSCRIBE",
"OPTIONS"
"OPTIONS",
"COPY",
"MOVE",
"LOCK",
"UNLOCK",
"PROPFIND",
"PROPPATCH",
"MKCOL"
};
static esp_err_t esp_http_client_request_send(esp_http_client_handle_t client, int write_len);

View file

@ -83,6 +83,13 @@ typedef enum {
HTTP_METHOD_SUBSCRIBE, /*!< HTTP SUBSCRIBE Method */
HTTP_METHOD_UNSUBSCRIBE,/*!< HTTP UNSUBSCRIBE Method */
HTTP_METHOD_OPTIONS, /*!< HTTP OPTIONS Method */
HTTP_METHOD_COPY, /*!< HTTP COPY Method */
HTTP_METHOD_MOVE, /*!< HTTP MOVE Method */
HTTP_METHOD_LOCK, /*!< HTTP LOCK Method */
HTTP_METHOD_UNLOCK, /*!< HTTP UNLOCK Method */
HTTP_METHOD_PROPFIND, /*!< HTTP PROPFIND Method */
HTTP_METHOD_PROPPATCH, /*!< HTTP PROPPATCH Method */
HTTP_METHOD_MKCOL, /*!< HTTP MKCOL Method */
HTTP_METHOD_MAX,
} esp_http_client_method_t;