MCPcopy Create free account
hub / github.com/apache/trafficserver / http_parse_status

Function http_parse_status

src/proxy/hdrs/HTTP.cc:1514–1528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1512 -------------------------------------------------------------------------*/
1513
1514HTTPStatus
1515http_parse_status(const char *start, const char *end)
1516{
1517 int status = 0;
1518
1519 while ((start != end) && ParseRules::is_space(*start)) {
1520 start += 1;
1521 }
1522
1523 while ((start != end) && isdigit(*start)) {
1524 status = (status * 10) + (*start++ - '0');
1525 }
1526
1527 return static_cast<HTTPStatus>(status);
1528}
1529
1530/*-------------------------------------------------------------------------
1531 -------------------------------------------------------------------------*/

Callers 2

http_parser_parse_respFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected