| 497 | } |
| 498 | |
| 499 | static int |
| 500 | ts_lua_http_redo_cache_lookup(lua_State *L) |
| 501 | { |
| 502 | const char *url; |
| 503 | size_t url_len; |
| 504 | |
| 505 | ts_lua_http_ctx *http_ctx; |
| 506 | |
| 507 | GET_HTTP_CONTEXT(http_ctx, L); |
| 508 | |
| 509 | url = luaL_checklstring(L, 1, &url_len); |
| 510 | |
| 511 | if (url && url_len) { |
| 512 | if (TSHttpTxnRedoCacheLookup(http_ctx->txnp, url, url_len) != TS_SUCCESS) { |
| 513 | TSError("[ts_lua][%s] Failed to redo cache lookup", __FUNCTION__); |
| 514 | } |
| 515 | } |
| 516 | |
| 517 | return 0; |
| 518 | } |
| 519 | |
| 520 | static int |
| 521 | ts_lua_http_get_parent_proxy(lua_State *L) |
nothing calls this directly
no test coverage detected