| 199 | } |
| 200 | |
| 201 | static void |
| 202 | ts_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 | |
| 221 | static void |
| 222 | ts_lua_inject_http_resp_transform_api(lua_State *L) |
no test coverage detected