MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / getHeader

Method getHeader

lib/AsyncHttpClient/src/HttpResponse.cpp:230–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230String HttpResponse::getHeader(const String& name)
231{
232 String value;
233
234 if (0U < m_headers.size())
235 {
236 ListOfHeaders::const_iterator headerIt = m_headers.begin();
237 bool isFound = false;
238
239 while ((headerIt != m_headers.end()) && (false == isFound))
240 {
241 const HttpHeader& header = *headerIt;
242
243 if (true == header.getName().equalsIgnoreCase(name))
244 {
245 value = header.getValue();
246 isFound = true;
247 }
248
249 ++headerIt;
250 }
251 }
252
253 return value;
254}
255
256const uint8_t* HttpResponse::getPayload(size_t& size) const
257{

Callers 2

uploadHandlerMethod · 0.80
handleRspHeaderMethod · 0.80

Calls 6

sizeMethod · 0.80
equalsIgnoreCaseMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
getNameMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected