| 959 | } |
| 960 | |
| 961 | static int |
| 962 | ts_lua_http_get_server_fd(lua_State *L) |
| 963 | { |
| 964 | int fd; |
| 965 | ts_lua_http_ctx *http_ctx; |
| 966 | |
| 967 | GET_HTTP_CONTEXT(http_ctx, L); |
| 968 | |
| 969 | if (TSHttpTxnServerFdGet(http_ctx->txnp, &fd) != TS_SUCCESS) { |
| 970 | lua_pushnil(L); |
| 971 | } else { |
| 972 | lua_pushnumber(L, fd); |
| 973 | } |
| 974 | |
| 975 | return 1; |
| 976 | } |
| 977 | |
| 978 | static int |
| 979 | ts_lua_http_get_client_fd(lua_State *L) |
nothing calls this directly
no test coverage detected