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:
parent
fb5c4a6420
commit
65db3aec72
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user