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

Method find

plugins/compress/configuration.cc:141–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141HostConfiguration *
142Configuration::find(const char *host, int host_length)
143{
144 HostConfiguration *host_configuration = host_configurations_[0];
145
146 if (host && host_length > 0 && host_configurations_.size() > 1) {
147 std::string shost(host, host_length);
148
149 // ToDo: Maybe use std::find() here somehow?
150 for (HostContainer::iterator it = host_configurations_.begin() + 1; it != host_configurations_.end(); ++it) {
151 if ((*it)->host() == shost) {
152 host_configuration = *it;
153 break;
154 }
155 }
156 }
157
158 return host_configuration;
159}
160
161bool
162HostConfiguration::is_url_allowed(const char *url, int url_len)

Callers 15

remove_scheme_prefixMethod · 0.45
loadRegionMapFunction · 0.45
getMethod · 0.45
getRegionFunction · 0.45
getMethod · 0.45
setMethod · 0.45
removeMethod · 0.45
find_eviction_slotMethod · 0.45
stats_originFunction · 0.45

Calls 4

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
hostMethod · 0.45

Tested by

no test coverage detected