| 130 | } |
| 131 | |
| 132 | String HttpResponse::toString() const |
| 133 | { |
| 134 | String content; |
| 135 | content += F("HTTP/1.1 "); |
| 136 | content += unsigned(code); |
| 137 | content += ' '; |
| 138 | content += ::toString(code); |
| 139 | content += " \r\n"; |
| 140 | for(auto hdr : headers) { |
| 141 | content += hdr; |
| 142 | } |
| 143 | content += "\r\n"; |
| 144 | |
| 145 | return content; |
| 146 | } |
| 147 | |
| 148 | void HttpResponse::freeStreams() |
| 149 | { |