| 251 | } |
| 252 | |
| 253 | static void |
| 254 | ts_lua_inject_http_misc_api(lua_State *L) |
| 255 | { |
| 256 | lua_pushcfunction(L, ts_lua_http_get_client_protocol_stack); |
| 257 | lua_setfield(L, -2, "get_client_protocol_stack"); |
| 258 | |
| 259 | lua_pushcfunction(L, ts_lua_http_get_server_protocol_stack); |
| 260 | lua_setfield(L, -2, "get_server_protocol_stack"); |
| 261 | |
| 262 | lua_pushcfunction(L, ts_lua_http_server_push); |
| 263 | lua_setfield(L, -2, "server_push"); |
| 264 | |
| 265 | lua_pushcfunction(L, ts_lua_http_is_websocket); |
| 266 | lua_setfield(L, -2, "is_websocket"); |
| 267 | |
| 268 | lua_pushcfunction(L, ts_lua_http_get_plugin_tag); |
| 269 | lua_setfield(L, -2, "get_plugin_tag"); |
| 270 | |
| 271 | lua_pushcfunction(L, ts_lua_http_get_id); |
| 272 | lua_setfield(L, -2, "id"); |
| 273 | |
| 274 | lua_pushcfunction(L, ts_lua_http_get_ssn_id); |
| 275 | lua_setfield(L, -2, "ssn_id"); |
| 276 | |
| 277 | lua_pushcfunction(L, ts_lua_http_is_internal_request); |
| 278 | lua_setfield(L, -2, "is_internal_request"); |
| 279 | |
| 280 | lua_pushcfunction(L, ts_lua_http_is_aborted); |
| 281 | lua_setfield(L, -2, "is_aborted"); |
| 282 | |
| 283 | lua_pushcfunction(L, ts_lua_http_skip_remapping_set); |
| 284 | lua_setfield(L, -2, "skip_remapping_set"); |
| 285 | |
| 286 | lua_pushcfunction(L, ts_lua_http_transaction_count); |
| 287 | lua_setfield(L, -2, "transaction_count"); |
| 288 | |
| 289 | lua_pushcfunction(L, ts_lua_http_server_transaction_count); |
| 290 | lua_setfield(L, -2, "server_transaction_count"); |
| 291 | |
| 292 | lua_pushcfunction(L, ts_lua_http_redirect_url_set); |
| 293 | lua_setfield(L, -2, "redirect_url_set"); |
| 294 | |
| 295 | lua_pushcfunction(L, ts_lua_http_get_server_state); |
| 296 | lua_setfield(L, -2, "get_server_state"); |
| 297 | |
| 298 | lua_pushcfunction(L, ts_lua_http_get_remap_from_url); |
| 299 | lua_setfield(L, -2, "get_remap_from_url"); |
| 300 | |
| 301 | lua_pushcfunction(L, ts_lua_http_get_remap_to_url); |
| 302 | lua_setfield(L, -2, "get_remap_to_url"); |
| 303 | |
| 304 | lua_pushcfunction(L, ts_lua_http_get_server_fd); |
| 305 | lua_setfield(L, -2, "get_server_fd"); |
| 306 | |
| 307 | lua_pushcfunction(L, ts_lua_http_get_client_fd); |
| 308 | lua_setfield(L, -2, "get_client_fd"); |
| 309 | |
| 310 | lua_pushcfunction(L, ts_lua_http_get_client_received_error); |
no test coverage detected