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",
|
||||
"PATCH",
|
||||
"DELETE",
|
||||
"HEAD"
|
||||
"HEAD",
|
||||
"NOTIFY",
|
||||
"SUBSCRIBE",
|
||||
"UNSUBSCRIBE",
|
||||
"OPTIONS"
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user