mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-02 05:20:59 +02:00
Added PATCH request. (#2610)
This commit is contained in:
committed by
Me No Dev
parent
dd649808d1
commit
92220b7643
@ -483,6 +483,22 @@ int HTTPClient::POST(String payload)
|
||||
return POST((uint8_t *) payload.c_str(), payload.length());
|
||||
}
|
||||
|
||||
/**
|
||||
* sends a patch request to the server
|
||||
* @param payload uint8_t *
|
||||
* @param size size_t
|
||||
* @return http code
|
||||
*/
|
||||
int HTTPClient::PATCH(uint8_t * payload, size_t size)
|
||||
{
|
||||
return sendRequest("PATCH", payload, size);
|
||||
}
|
||||
|
||||
int HTTPClient::PATCH(String payload)
|
||||
{
|
||||
return PATCH((uint8_t *) payload.c_str(), payload.length());
|
||||
}
|
||||
|
||||
/**
|
||||
* sends a put request to the server
|
||||
* @param payload uint8_t *
|
||||
|
Reference in New Issue
Block a user