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

Function http_parse_te

src/proxy/hdrs/HTTP.cc:1674–1694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1672 -------------------------------------------------------------------------*/
1673
1674HTTPValTE *
1675http_parse_te(const char *buf, int len, Arena *arena)
1676{
1677 HTTPValTE *val;
1678 const char *s;
1679
1680 http_skip_ws(buf, len);
1681
1682 s = buf;
1683
1684 while (len > 0 && *buf && (*buf != ';')) {
1685 buf += 1;
1686 len -= 1;
1687 }
1688
1689 val = static_cast<HTTPValTE *>(arena->alloc(sizeof(HTTPValTE)));
1690 val->encoding = http_str_store(arena, s, static_cast<int>(buf - s));
1691 val->qvalue = http_parse_qvalue(buf, len);
1692
1693 return val;
1694}
1695
1696void
1697HTTPHdr::_fill_target_cache() const

Callers 1

Calls 4

http_skip_wsFunction · 0.85
http_str_storeFunction · 0.85
http_parse_qvalueFunction · 0.85
allocMethod · 0.45

Tested by

no test coverage detected