| 147 | } |
| 148 | |
| 149 | HTTPRequestFilter fullUrlFilter(const Poco::Util::AbstractConfiguration & config, const std::string & config_path, HTTPRequestFilterMatchType match_type) |
| 150 | { |
| 151 | return [expression = getExpression(config.getString(config_path), match_type, /* ignore_query_string= */ true)](const HTTPServerRequest & request) |
| 152 | { |
| 153 | const auto & server_address = request.serverAddress(); |
| 154 | std::string url = fmt::format("{}://{}{}", |
| 155 | request.isSecure() ? "https" : "http", |
| 156 | server_address.toString(), |
| 157 | request.getURI()); |
| 158 | |
| 159 | return checkExpression(url, expression); |
| 160 | }; |
| 161 | } |
| 162 | |
| 163 | HTTPRequestFilter emptyQueryStringFilter() |
| 164 | { |
no test coverage detected