| 31 | } |
| 32 | |
| 33 | HttpResponse* HttpResponse::setCache(int maxAgeSeconds, bool isPublic) |
| 34 | { |
| 35 | String cache = isPublic ? F("public") : F("private"); |
| 36 | cache += F(", max-age="); |
| 37 | cache += maxAgeSeconds; |
| 38 | cache += F(", must-revalidate"); |
| 39 | headers[HTTP_HEADER_CACHE_CONTROL] = cache; |
| 40 | return this; |
| 41 | } |
| 42 | |
| 43 | bool HttpResponse::sendString(const String& text) |
| 44 | { |
no test coverage detected