esp_http_client: add support OPPTIONS/SUB/UNSUB/NOTIFY methods

This commit is contained in:
Tuan PM 2018-09-06 21:30:07 +08:00 committed by bot
parent aab43e6dda
commit 738d49e02b
2 changed files with 10 additions and 2 deletions

View File

@ -136,7 +136,11 @@ static const char *HTTP_METHOD_MAPPING[] = {
"PUT",
"PATCH",
"DELETE",
"HEAD"
"HEAD",
"NOTIFY",
"SUBSCRIBE",
"UNSUBSCRIBE",
"OPTIONS"
};
/**

View File

@ -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
#endif