| 415 | } |
| 416 | |
| 417 | bool |
| 418 | BgFetch::schedule(BgFetchState *state, const PrefetchConfig &config, bool askPermission, TSMBuffer requestBuffer, |
| 419 | TSMLoc requestHeaderLoc, TSHttpTxn txnp, const char *path, size_t pathLen, const String &cachekey, |
| 420 | bool removeQuery) |
| 421 | { |
| 422 | bool ret = false; |
| 423 | BgFetch *fetch = new BgFetch(state, config, askPermission); |
| 424 | if (fetch->init(requestBuffer, requestHeaderLoc, txnp, path, pathLen, cachekey, removeQuery)) { |
| 425 | fetch->schedule(); |
| 426 | ret = true; |
| 427 | } else { |
| 428 | delete fetch; |
| 429 | } |
| 430 | return ret; |
| 431 | } |
| 432 | |
| 433 | bool |
| 434 | BgFetch::saveIp(TSHttpTxn txnp) |
nothing calls this directly
no test coverage detected