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

Function do_remap

src/cripts/tests/query_test.cc:30–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30do_remap()
31{
32 borrow url = Client::URL::get();
33
34 switch (AsInteger(instance.data[0])) {
35 case 0:
36 url.query.Erase({"foo", "bar"}, true);
37 break;
38 case 1:
39 url.query.Erase({"foo", "bar"});
40 break;
41 case 2:
42 url.query.Keep({"foo", "bar"});
43 break;
44 default:
45 break;
46 }
47
48 url.query.Flush();
49 CDebug("Query: {}", url.query);
50}
51
52#include <cripts/Epilogue.hpp>

Callers

nothing calls this directly

Calls 4

KeepMethod · 0.80
getFunction · 0.50
EraseMethod · 0.45
FlushMethod · 0.45

Tested by

no test coverage detected