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

+8
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

+1
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)