1
/* vim:set ft=c ts=4 sw=4 et fdm=marker: */
2
#ifndef NGX_HTTP_LUA_UTIL_H
3
#define NGX_HTTP_LUA_UTIL_H
5
#include "ngx_http_lua_common.h"
8
lua_State * ngx_http_lua_new_state(ngx_conf_t *cf,
9
ngx_http_lua_main_conf_t *lmcf);
11
lua_State * ngx_http_lua_new_thread(ngx_http_request_t *r, lua_State *l,
13
void ngx_http_lua_del_thread(ngx_http_request_t *r, lua_State *l, int ref,
16
ngx_int_t ngx_http_lua_has_inline_var(ngx_str_t *s);
17
u_char * ngx_http_lua_rebase_path(ngx_pool_t *pool, u_char *src, size_t len);
19
ngx_int_t ngx_http_lua_send_header_if_needed(ngx_http_request_t *r,
20
ngx_http_lua_ctx_t *ctx);
21
ngx_int_t ngx_http_lua_send_chain_link(ngx_http_request_t *r,
22
ngx_http_lua_ctx_t *ctx, ngx_chain_t *cl);
24
ngx_int_t ngx_http_lua_post_request_at_head(ngx_http_request_t *r,
25
ngx_http_posted_request_t *pr);
27
void ngx_http_lua_discard_bufs(ngx_pool_t *pool, ngx_chain_t *in);
28
ngx_int_t ngx_http_lua_add_copy_chain(ngx_pool_t *pool, ngx_chain_t **chain,
31
int ngx_http_lua_var_get(lua_State *L);
32
int ngx_http_lua_var_set(lua_State *L);
35
#endif /* NGX_HTTP_LUA_UTIL_H */