Skip to content

Commit 65db3ae

Browse files
authored
Add HTTP delete method (#8214)
1 parent fb5c4a6 commit 65db3ae

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,14 @@ int HTTPClient::GET()
354354
{
355355
return sendRequest("GET");
356356
}
357+
/**
358+
* send a DELETE request
359+
* @return http code
360+
*/
361+
int HTTPClient::DELETE()
362+
{
363+
return sendRequest("DELETE");
364+
}
357365

358366
/**
359367
* sends a post request to the server

libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ class HTTPClient
187187

188188
/// request handling
189189
int GET();
190+
int DELETE();
190191
int POST(const uint8_t* payload, size_t size);
191192
int POST(const String& payload);
192193
int PUT(const uint8_t* payload, size_t size);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy