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

Function http_config_enum_read

src/proxy/http/HttpConfig.cc:100–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98/// If found @a value is set to the corresponding value in @a list.
99template <typename T, unsigned N>
100static bool
101http_config_enum_read(const char *name, const ConfigEnumPair<T> (&list)[N], MgmtByte &value)
102{
103 char key[512]; // it's just one key - painful UI if keys are longer than this
104 if (REC_ERR_OKAY == RecGetRecordString(name, key, sizeof(key))) {
105 return http_config_enum_search(key, list, value);
106 }
107 return false;
108}
109
110////////////////////////////////////////////////////////////////
111//

Callers 1

startupMethod · 0.85

Calls 2

RecGetRecordStringFunction · 0.85
http_config_enum_searchFunction · 0.85

Tested by

no test coverage detected