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

Function ts_lua_inject_vconn_api

plugins/lua/ts_lua_vconn.cc:26–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24static int ts_lua_vconn_get_fd(lua_State *L);
25
26void
27ts_lua_inject_vconn_api(lua_State *L)
28{
29 lua_newtable(L);
30
31 lua_pushcfunction(L, ts_lua_vconn_disable_h2);
32 lua_setfield(L, -2, "disable_h2");
33
34 lua_pushcfunction(L, ts_lua_vconn_get_remote_addr);
35 lua_setfield(L, -2, "get_remote_addr");
36
37 lua_pushcfunction(L, ts_lua_vconn_get_fd);
38 lua_setfield(L, -2, "get_fd");
39
40 lua_setfield(L, -2, "vconn");
41}
42
43static int
44ts_lua_vconn_disable_h2(lua_State *L)

Callers 1

ts_lua_inject_ts_apiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected