diff --git a/components/esp_http_client/esp_http_client.c b/components/esp_http_client/esp_http_client.c index bca80fad9..e44cc7e5a 100644 --- a/components/esp_http_client/esp_http_client.c +++ b/components/esp_http_client/esp_http_client.c @@ -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); diff --git a/components/esp_http_client/include/esp_http_client.h b/components/esp_http_client/include/esp_http_client.h index 15c64dcc4..0aba3d268 100644 --- a/components/esp_http_client/include/esp_http_client.h +++ b/components/esp_http_client/include/esp_http_client.h @@ -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;