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

Method loadValue

src/records/RecHttp.cc:309–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309bool
310HttpProxyPort::loadValue(std::vector<self> &ports, const char *text)
311{
312 unsigned old_port_length = ports.size(); // remember this.
313 if (text && *text) {
314 Tokenizer tokens(", ");
315 int n_ports = tokens.Initialize(text);
316 if (n_ports > 0) {
317 for (int p = 0; p < n_ports; ++p) {
318 const char *elt = tokens[p];
319 HttpProxyPort entry;
320 if (entry.processOptions(elt)) {
321 ports.push_back(entry);
322 } else {
323 Warning("No valid definition was found in proxy port configuration element '%s'", elt);
324 }
325 }
326 }
327 }
328 return ports.size() > old_port_length; // we added at least one port.
329}
330
331bool
332HttpProxyPort::processOptions(const char *opts)

Callers

nothing calls this directly

Calls 4

processOptionsMethod · 0.80
sizeMethod · 0.45
InitializeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected