You've already forked ArduinoHttpClient
mirror of
https://github.com/arduino-libraries/ArduinoHttpClient.git
synced 2025-08-13 23:02:22 +03:00
Wrap proxy member var declarations in #ifdef
This commit is contained in:
@@ -29,7 +29,7 @@ HttpClient::HttpClient(Client& aClient, const char* aProxy, uint16_t aProxyPort)
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
HttpClient::HttpClient(Client& aClient)
|
HttpClient::HttpClient(Client& aClient)
|
||||||
: iClient(&aClient), iProxyPort(0)
|
: iClient(&aClient)
|
||||||
{
|
{
|
||||||
resetState();
|
resetState();
|
||||||
}
|
}
|
||||||
|
@@ -440,9 +440,11 @@ protected:
|
|||||||
int iBodyLengthConsumed;
|
int iBodyLengthConsumed;
|
||||||
// How far through a Content-Length header prefix we are
|
// How far through a Content-Length header prefix we are
|
||||||
const char* iContentLengthPtr;
|
const char* iContentLengthPtr;
|
||||||
|
#ifdef PROXY_ENABLED
|
||||||
// Address of the proxy to use, if we're using one
|
// Address of the proxy to use, if we're using one
|
||||||
IPAddress iProxyAddress;
|
IPAddress iProxyAddress;
|
||||||
uint16_t iProxyPort;
|
uint16_t iProxyPort;
|
||||||
|
#endif
|
||||||
uint32_t iHttpResponseTimeout;
|
uint32_t iHttpResponseTimeout;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user