MCPcopy Create free account
hub / github.com/apache/trafficserver / ts_lua_http_redo_cache_lookup

Function ts_lua_http_redo_cache_lookup

plugins/lua/ts_lua_http.cc:499–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499static int
500ts_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
520static int
521ts_lua_http_get_parent_proxy(lua_State *L)

Callers

nothing calls this directly

Calls 2

TSHttpTxnRedoCacheLookupFunction · 0.85
TSErrorFunction · 0.50

Tested by

no test coverage detected