1
0
mirror of https://github.com/arduino-libraries/ArduinoHttpClient.git synced 2025-07-11 06:41:44 +03:00

Add new del API for HTTP DELETE method

This commit is contained in:
Sandeep Mistry
2016-06-22 12:16:12 -04:00
parent c3023b25ee
commit bdc5281733
3 changed files with 45 additions and 6 deletions

View File

@ -104,6 +104,24 @@ public:
int put(const String& aURLPath, const String& aContentType, const String& aBody);
int put(const char* aURLPath, const char* aContentType, int aContentLength, const byte aBody[]);
/** Connect to the server and start to send a DELETE request.
@param aURLPath Url to request
@return 0 if successful, else error
*/
int del(const char* aURLPath);
int del(const String& aURLPath);
/** Connect to the server and start to send a DELETE request
with body and content type
@param aURLPath Url to request
@param aContentType Content type of request body
@param aBody Body of the request
@return 0 if successful, else error
*/
int del(const char* aURLPath, const char* aContentType, const char* aBody);
int del(const String& aURLPath, const String& aContentType, const String& aBody);
int del(const char* aURLPath, const char* aContentType, int aContentLength, const byte aBody[]);
/** Connect to the server and start to send the request.
@param aURLPath Url to request
@param aHttpMethod Type of HTTP request to make, e.g. "GET", "POST", etc.