1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-28 05:01:28 +03:00

PROGMEM footprint cleanup for responseCodeToString (#6950)

* PROGMEM footprint cleanup for responseCodeToString

Doing returns with String/FlashStringHelper conversion for every
case means that the code for doing that is duplicated, which
is wasteful. doing it only once saves about 250 bytes (50%) of
code size.

* Remove "I'm a teapot" error code

* Add inline code comment to explain rationale
This commit is contained in:
Dirk Mueller
2019-12-27 23:02:57 +01:00
committed by Develo
parent 698ffc3498
commit bea9cfc3a0
2 changed files with 133 additions and 46 deletions

View File

@ -169,7 +169,7 @@ public:
return contentLength;
}
static const String responseCodeToString(const int code);
static String responseCodeToString(const int code);
protected:
void _addRequestHandler(RequestHandlerType* handler);