| 850 | Do_ua_req_query::Do_ua_req_query(Expr &&expr) : _expr(std::move(expr)) {} |
| 851 | |
| 852 | Errata |
| 853 | Do_ua_req_query::invoke(Context &ctx) |
| 854 | { |
| 855 | TextView text{std::get<IndexFor(STRING)>(ctx.extract(_expr))}; |
| 856 | if (auto hdr{ctx.ua_req_hdr()}; hdr.is_valid()) { |
| 857 | hdr.url().query_set(text); |
| 858 | } |
| 859 | return {}; |
| 860 | } |
| 861 | |
| 862 | swoc::Rv<Directive::Handle> |
| 863 | Do_ua_req_query::load(Config &cfg, CfgStaticData const *, YAML::Node drtv_node, swoc::TextView const &, swoc::TextView const &, |
no test coverage detected