1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

Add HTTP delete method (#8214)

This commit is contained in:
behrooz bozorg chami 2021-09-01 21:12:19 +04:30 committed by GitHub
parent fb5c4a6420
commit 65db3aec72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -354,6 +354,14 @@ int HTTPClient::GET()
{
return sendRequest("GET");
}
/**
* send a DELETE request
* @return http code
*/
int HTTPClient::DELETE()
{
return sendRequest("DELETE");
}
/**
* sends a post request to the server

View File

@ -187,6 +187,7 @@ public:
/// request handling
int GET();
int DELETE();
int POST(const uint8_t* payload, size_t size);
int POST(const String& payload);
int PUT(const uint8_t* payload, size_t size);