blob: aad4236d8410886df7b8602bd4ac292a837eb27c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/*
* Copyright (C) Xiaozhe Wang (chaoslawful)
* Copyright (C) Yichun Zhang (agentzh)
*/
#ifndef _NGX_HTTP_LUA_SUBREQUEST_H_INCLUDED_
#define _NGX_HTTP_LUA_SUBREQUEST_H_INCLUDED_
#include "ngx_http_lua_common.h"
void ngx_http_lua_inject_subrequest_api(lua_State *L);
ngx_int_t ngx_http_lua_post_subrequest(ngx_http_request_t *r, void *data,
ngx_int_t rc);
extern ngx_str_t ngx_http_lua_get_method;
extern ngx_str_t ngx_http_lua_put_method;
extern ngx_str_t ngx_http_lua_post_method;
extern ngx_str_t ngx_http_lua_head_method;
extern ngx_str_t ngx_http_lua_delete_method;
extern ngx_str_t ngx_http_lua_options_method;
extern ngx_str_t ngx_http_lua_copy_method;
extern ngx_str_t ngx_http_lua_move_method;
extern ngx_str_t ngx_http_lua_lock_method;
extern ngx_str_t ngx_http_lua_mkcol_method;
extern ngx_str_t ngx_http_lua_propfind_method;
extern ngx_str_t ngx_http_lua_proppatch_method;
extern ngx_str_t ngx_http_lua_unlock_method;
extern ngx_str_t ngx_http_lua_patch_method;
extern ngx_str_t ngx_http_lua_trace_method;
typedef struct ngx_http_lua_post_subrequest_data_s {
ngx_http_lua_ctx_t *ctx;
ngx_http_lua_co_ctx_t *pr_co_ctx;
} ngx_http_lua_post_subrequest_data_t;
#endif /* _NGX_HTTP_LUA_SUBREQUEST_H_INCLUDED_ */
/* vi:set ft=c ts=4 sw=4 et fdm=marker: */
|