| 392 | } |
| 393 | |
| 394 | HTTPHandler* 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 | |
| 402 | HTTPHandler* new_default_forward_proxy_handler(uint64_t timeout) { |
| 403 | auto c = new_http_client(); |