MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / test_modifier

Function test_modifier

net/http/test/server_function_test.cpp:257–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257int test_modifier(void*, Response& src, Response& dst) {
258 dst.set_result(src.status_code());
259 for (auto kv : src.headers) {
260 dst.headers.insert(kv.first, kv.second);
261 LOG_DEBUG(kv.first, ": ", kv.second);
262 }
263 dst.headers.insert("proxy_server_test", "just4test");
264
265 return 0;
266}
267
268TEST(http_server, proxy_handler_get) {
269 std_data.resize(std_data_size);

Callers

nothing calls this directly

Calls 3

set_resultMethod · 0.80
status_codeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected