MCPcopy Create free account
hub / github.com/SmingHub/Sming / toString

Method toString

Sming/Components/Network/src/Network/Http/HttpResponse.cpp:132–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132String 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
148void HttpResponse::freeStreams()
149{

Callers

nothing calls this directly

Calls 2

toStringFunction · 0.70
FFunction · 0.50

Tested by

no test coverage detected