diff --git a/components/esp_http_client/esp_http_client.c b/components/esp_http_client/esp_http_client.c index 1905d5f0c0..6dc7e44993 100644 --- a/components/esp_http_client/esp_http_client.c +++ b/components/esp_http_client/esp_http_client.c @@ -136,7 +136,11 @@ static const char *HTTP_METHOD_MAPPING[] = { "PUT", "PATCH", "DELETE", - "HEAD" + "HEAD", + "NOTIFY", + "SUBSCRIBE", + "UNSUBSCRIBE", + "OPTIONS" }; /** diff --git a/components/esp_http_client/include/esp_http_client.h b/components/esp_http_client/include/esp_http_client.h index 159931c2c8..9043a48fe7 100644 --- a/components/esp_http_client/include/esp_http_client.h +++ b/components/esp_http_client/include/esp_http_client.h @@ -77,6 +77,10 @@ typedef enum { HTTP_METHOD_PATCH, /*!< HTTP PATCH Method */ HTTP_METHOD_DELETE, /*!< HTTP DELETE Method */ HTTP_METHOD_HEAD, /*!< HTTP HEAD Method */ + HTTP_METHOD_NOTIFY, /*!< HTTP NOTIFY Method */ + HTTP_METHOD_SUBSCRIBE, /*!< HTTP SUBSCRIBE Method */ + HTTP_METHOD_UNSUBSCRIBE,/*!< HTTP UNSUBSCRIBE Method */ + HTTP_METHOD_OPTIONS, /*!< HTTP OPTIONS Method */ HTTP_METHOD_MAX, } esp_http_client_method_t; @@ -369,4 +373,4 @@ esp_http_client_transport_t esp_http_client_get_transport_type(esp_http_client_h #endif -#endif \ No newline at end of file +#endif