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

Method read_html

plugins/experimental/geoip_acl/acl.cc:111–124  ·  view source on GitHub ↗

This is the rest of the ACL base class, which is the same for all underlying Geo libraries.

Source from the content-addressed store, hash-verified

109
110// This is the rest of the ACL base class, which is the same for all underlying Geo libraries.
111void
112Acl::read_html(const char *fn)
113{
114 std::ifstream f;
115
116 f.open(fn, std::ios::in);
117 if (f.is_open()) {
118 _html.append(std::istreambuf_iterator<char>(f), std::istreambuf_iterator<char>());
119 f.close();
120 Dbg(dbg_ctl, "Loaded HTML from %s", fn);
121 } else {
122 TSError("[%s] Unable to open HTML file %s", PLUGIN_NAME, fn);
123 }
124}
125
126// Implementations for the RegexAcl class
127bool

Callers

nothing calls this directly

Calls 5

TSErrorFunction · 0.50
openMethod · 0.45
is_openMethod · 0.45
appendMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected