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

Method parseRspStatusLine

lib/AsyncHttpClient/src/AsyncHttpClient.cpp:1468–1491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1466}
1467
1468bool AsyncHttpClient::parseRspStatusLine(const char* data, size_t len, size_t& index)
1469{
1470 bool isStatusLineEOF = false;
1471
1472 while ((len > index) && (false == isStatusLineEOF))
1473 {
1474 size_t terminatorLen = 0U;
1475
1476 m_rspLine += data[index];
1477 ++index;
1478
1479 if (true == isEOL(m_rspLine, terminatorLen))
1480 {
1481 m_rspLine.remove(m_rspLine.length() - terminatorLen);
1482
1483 m_rsp.addStatusLine(m_rspLine);
1484
1485 isStatusLineEOF = true;
1486 m_rspLine.clear();
1487 }
1488 }
1489
1490 return isStatusLineEOF;
1491}
1492
1493bool AsyncHttpClient::parseRspHeader(const char* data, size_t len, size_t& index)
1494{

Callers

nothing calls this directly

Calls 4

removeMethod · 0.80
addStatusLineMethod · 0.80
lengthMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected