mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp_http_client: add support OPPTIONS/SUB/UNSUB/NOTIFY methods
This commit is contained in:
parent
aab43e6dda
commit
738d49e02b
@ -136,7 +136,11 @@ static const char *HTTP_METHOD_MAPPING[] = {
|
|||||||
"PUT",
|
"PUT",
|
||||||
"PATCH",
|
"PATCH",
|
||||||
"DELETE",
|
"DELETE",
|
||||||
"HEAD"
|
"HEAD",
|
||||||
|
"NOTIFY",
|
||||||
|
"SUBSCRIBE",
|
||||||
|
"UNSUBSCRIBE",
|
||||||
|
"OPTIONS"
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -77,6 +77,10 @@ typedef enum {
|
|||||||
HTTP_METHOD_PATCH, /*!< HTTP PATCH Method */
|
HTTP_METHOD_PATCH, /*!< HTTP PATCH Method */
|
||||||
HTTP_METHOD_DELETE, /*!< HTTP DELETE Method */
|
HTTP_METHOD_DELETE, /*!< HTTP DELETE Method */
|
||||||
HTTP_METHOD_HEAD, /*!< HTTP HEAD 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,
|
HTTP_METHOD_MAX,
|
||||||
} esp_http_client_method_t;
|
} esp_http_client_method_t;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user