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

Function http_str_store

src/proxy/hdrs/HTTP.cc:1572–1582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1570 -------------------------------------------------------------------------*/
1571
1572static char *
1573http_str_store(Arena *arena, const char *str, int length)
1574{
1575 const char *wks;
1576 int idx = hdrtoken_tokenize(str, length, &wks);
1577 if (idx < 0) {
1578 return arena->str_store(str, length);
1579 } else {
1580 return const_cast<char *>(wks);
1581 }
1582}
1583
1584/*-------------------------------------------------------------------------
1585 -------------------------------------------------------------------------*/

Callers 1

http_parse_teFunction · 0.85

Calls 2

hdrtoken_tokenizeFunction · 0.85
str_storeMethod · 0.80

Tested by

no test coverage detected