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

Function ts_lua_inject_http_transform_api

plugins/lua/ts_lua_http.cc:201–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201static void
202ts_lua_inject_http_transform_api(lua_State *L)
203{
204 lua_pushcfunction(L, ts_lua_http_resp_cache_transformed);
205 lua_setfield(L, -2, "resp_cache_transformed");
206
207 lua_pushcfunction(L, ts_lua_http_resp_cache_untransformed);
208 lua_setfield(L, -2, "resp_cache_untransformed");
209
210 /* ts.http.resp_transform api */
211 lua_newtable(L);
212 ts_lua_inject_http_resp_transform_api(L);
213 lua_setfield(L, -2, "resp_transform");
214
215 /* ts.http.req_transform api */
216 lua_newtable(L);
217 ts_lua_inject_http_req_transform_api(L);
218 lua_setfield(L, -2, "req_transform");
219}
220
221static void
222ts_lua_inject_http_resp_transform_api(lua_State *L)

Callers 1

ts_lua_inject_http_apiFunction · 0.85

Tested by

no test coverage detected