You've already forked ArduinoHttpClient
mirror of
https://github.com/arduino-libraries/ArduinoHttpClient.git
synced 2025-07-03 16:42:31 +03:00
Add new beginBody API
This commit is contained in:
@ -263,6 +263,11 @@ void HttpClient::flushClientRx()
|
||||
}
|
||||
|
||||
void HttpClient::endRequest()
|
||||
{
|
||||
beginBody();
|
||||
}
|
||||
|
||||
void HttpClient::beginBody()
|
||||
{
|
||||
if (iState < eRequestSent)
|
||||
{
|
||||
|
@ -62,6 +62,13 @@ public:
|
||||
*/
|
||||
void endRequest();
|
||||
|
||||
/** Start the body of a more complex request.
|
||||
Use this when you need to send the body after additional headers
|
||||
in the request, but can optionally call endRequest() when
|
||||
you are finished.
|
||||
*/
|
||||
void beginBody();
|
||||
|
||||
/** Connect to the server and start to send a GET request.
|
||||
@param aURLPath Url to request
|
||||
@return 0 if successful, else error
|
||||
|
Reference in New Issue
Block a user