MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / urlFilter

Function urlFilter

src/Server/HTTPHandlerRequestFilter.cpp:141–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141HTTPRequestFilter urlFilter(const Poco::Util::AbstractConfiguration & config, const std::string & config_path, HTTPRequestFilterMatchType match_type)
142{
143 return [expression = getExpression(config.getString(config_path), match_type, /* ignore_query_string= */ true)](const HTTPServerRequest & request)
144 {
145 return checkExpression(request.getURI(), expression);
146 };
147}
148
149HTTPRequestFilter fullUrlFilter(const Poco::Util::AbstractConfiguration & config, const std::string & config_path, HTTPRequestFilterMatchType match_type)
150{

Callers 1

Calls 4

getExpressionFunction · 0.85
checkExpressionFunction · 0.85
getURIMethod · 0.80
getStringMethod · 0.45

Tested by

no test coverage detected