Skip to content

Commit

Permalink
Add HTTP delete method (#8214)
Browse files Browse the repository at this point in the history
  • Loading branch information
behroozbc authored Sep 1, 2021
1 parent fb5c4a6 commit 65db3ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ class HTTPClient

/// 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);
Expand Down

0 comments on commit 65db3ae

Please # to comment.