| 630 | } |
| 631 | |
| 632 | static int |
| 633 | ts_lua_http_set_cache_url(lua_State *L) |
| 634 | { |
| 635 | const char *url; |
| 636 | size_t url_len; |
| 637 | |
| 638 | ts_lua_http_ctx *http_ctx; |
| 639 | |
| 640 | GET_HTTP_CONTEXT(http_ctx, L); |
| 641 | |
| 642 | url = luaL_checklstring(L, 1, &url_len); |
| 643 | |
| 644 | if (url && url_len) { |
| 645 | if (TSCacheUrlSet(http_ctx->txnp, url, url_len) != TS_SUCCESS) { |
| 646 | TSError("[ts_lua][%s] Failed to set cache url", __FUNCTION__); |
| 647 | } |
| 648 | } |
| 649 | |
| 650 | return 0; |
| 651 | } |
| 652 | |
| 653 | static int |
| 654 | ts_lua_http_set_server_resp_no_store(lua_State *L) |
nothing calls this directly
no test coverage detected