| 1466 | } |
| 1467 | |
| 1468 | bool 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 | |
| 1493 | bool AsyncHttpClient::parseRspHeader(const char* data, size_t len, size_t& index) |
| 1494 | { |
nothing calls this directly
no test coverage detected