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

Function new_proxy_handler

net/http/server.cpp:394–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394HTTPHandler* new_proxy_handler(Director cb_director, Modifier cb_modifier, Client* client, bool client_ownership) {
395 if (client == nullptr) {
396 client = new_http_client();
397 client_ownership = true;
398 }
399 return new ProxyHandler(cb_director, cb_modifier, client, client_ownership);
400}
401
402HTTPHandler* new_default_forward_proxy_handler(uint64_t timeout) {
403 auto c = new_http_client();

Callers 2

TESTFunction · 0.85
TESTFunction · 0.85

Calls 1

new_http_clientFunction · 0.85

Tested by 2

TESTFunction · 0.68
TESTFunction · 0.68