lua-resty-reqargs
lua-resty-reqargs copied to clipboard
can't load this module at init_by_lua* phase
I'm designing a web framework that will preload all modules at init_by_lua* phase for better performance for the first request, also more elegant design taste (my opinion). But the following lines decide this module can be only loaded at request time. So bungle, what's your opinion?
local defaults = {
tmp_dir = var.reqargs_tmp_dir,
timeout = tonumber(var.reqargs_timeout) or 1000,
chunk_size = tonumber(var.reqargs_chunk_size) or 4096,
max_get_args = tonumber(var.reqargs_max_get_args) or 100,
max_post_args = tonumber(var.reqargs_max_post_args) or 100,
max_line_size = tonumber(var.reqargs_max_line_size),
max_file_size = tonumber(var.reqargs_max_file_size),
max_file_uploads = tonumber(var.reqargs_max_file_uploads)
}