Skip to content

Commit 644b98f

Browse files
cppcoffeezhuizhuhaomeng
authored andcommitted
feature: introduced ngx_http_lua_get_lua_http10_buffering.
1 parent 6f7a9a3 commit 644b98f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/api/ngx_http_lua_api.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ lua_State *ngx_http_lua_get_co_ctx_vm(ngx_http_lua_co_ctx_t *coctx);
6868

6969
void ngx_http_lua_co_ctx_resume_helper(ngx_http_lua_co_ctx_t *coctx, int nrets);
7070

71+
int ngx_http_lua_get_lua_http10_buffering(ngx_http_request_t *r);
72+
7173

7274
#endif /* _NGX_HTTP_LUA_API_H_INCLUDED_ */
7375

src/ngx_http_lua_api.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,4 +329,16 @@ ngx_http_lua_co_ctx_resume_helper(ngx_http_lua_co_ctx_t *coctx, int nrets)
329329
ngx_http_run_posted_requests(c);
330330
}
331331

332+
333+
int
334+
ngx_http_lua_get_lua_http10_buffering(ngx_http_request_t *r)
335+
{
336+
ngx_http_lua_loc_conf_t *llcf;
337+
338+
llcf = ngx_http_get_module_loc_conf(r, ngx_http_lua_module);
339+
340+
return llcf->http10_buffering;
341+
}
342+
343+
332344
/* vi:set ft=c ts=4 sw=4 et fdm=marker: */

0 commit comments

Comments
 (0)