add:
ts.client_response.get_headers()
ts.server_response.get_headers()
ts.server_request.get_headers()
ts.client_request.get_headers()
ts.cached_response.get_headers()

init ts_lua_main_ctx_array as NULL