@@ -3,12 +3,9 @@ use std::ptr::addr_of;
33
44use http:: HeaderMap ;
55use ngx:: core;
6- use ngx:: ffi:: {
7- nginx_version, ngx_array_push, ngx_command_t, ngx_conf_t, ngx_http_core_module, ngx_http_handler_pt,
8- ngx_http_module_t, ngx_http_phases_NGX_HTTP_PRECONTENT_PHASE, ngx_int_t, ngx_module_t, ngx_str_t, ngx_uint_t,
9- NGX_CONF_TAKE1 , NGX_HTTP_LOC_CONF , NGX_HTTP_MODULE , NGX_HTTP_SRV_CONF , NGX_RS_HTTP_LOC_CONF_OFFSET ,
10- NGX_RS_MODULE_SIGNATURE ,
11- } ;
6+ use ngx:: core:: prelude:: * ;
7+ use ngx:: ffi:: { nginx_version, ngx_array_push, ngx_http_phases_NGX_HTTP_PRECONTENT_PHASE, NGX_RS_MODULE_SIGNATURE } ;
8+ use ngx:: http:: prelude:: * ;
129use ngx:: http:: * ;
1310use ngx:: { http_request_handler, ngx_log_debug_http, ngx_null_command, ngx_string} ;
1411
@@ -47,39 +44,39 @@ static mut NGX_HTTP_AWSSIGV4_COMMANDS: [ngx_command_t; 6] = [
4744 name : ngx_string ! ( "awssigv4" ) ,
4845 type_ : ( NGX_HTTP_LOC_CONF | NGX_HTTP_SRV_CONF | NGX_CONF_TAKE1 ) as ngx_uint_t ,
4946 set : Some ( ngx_http_awssigv4_commands_set_enable) ,
50- conf : NGX_RS_HTTP_LOC_CONF_OFFSET ,
47+ conf : NGX_HTTP_LOC_CONF_OFFSET ,
5148 offset : 0 ,
5249 post : std:: ptr:: null_mut ( ) ,
5350 } ,
5451 ngx_command_t {
5552 name : ngx_string ! ( "awssigv4_access_key" ) ,
5653 type_ : ( NGX_HTTP_LOC_CONF | NGX_HTTP_SRV_CONF | NGX_CONF_TAKE1 ) as ngx_uint_t ,
5754 set : Some ( ngx_http_awssigv4_commands_set_access_key) ,
58- conf : NGX_RS_HTTP_LOC_CONF_OFFSET ,
55+ conf : NGX_HTTP_LOC_CONF_OFFSET ,
5956 offset : 0 ,
6057 post : std:: ptr:: null_mut ( ) ,
6158 } ,
6259 ngx_command_t {
6360 name : ngx_string ! ( "awssigv4_secret_key" ) ,
6461 type_ : ( NGX_HTTP_LOC_CONF | NGX_HTTP_SRV_CONF | NGX_CONF_TAKE1 ) as ngx_uint_t ,
6562 set : Some ( ngx_http_awssigv4_commands_set_secret_key) ,
66- conf : NGX_RS_HTTP_LOC_CONF_OFFSET ,
63+ conf : NGX_HTTP_LOC_CONF_OFFSET ,
6764 offset : 0 ,
6865 post : std:: ptr:: null_mut ( ) ,
6966 } ,
7067 ngx_command_t {
7168 name : ngx_string ! ( "awssigv4_s3_bucket" ) ,
7269 type_ : ( NGX_HTTP_LOC_CONF | NGX_HTTP_SRV_CONF | NGX_CONF_TAKE1 ) as ngx_uint_t ,
7370 set : Some ( ngx_http_awssigv4_commands_set_s3_bucket) ,
74- conf : NGX_RS_HTTP_LOC_CONF_OFFSET ,
71+ conf : NGX_HTTP_LOC_CONF_OFFSET ,
7572 offset : 0 ,
7673 post : std:: ptr:: null_mut ( ) ,
7774 } ,
7875 ngx_command_t {
7976 name : ngx_string ! ( "awssigv4_s3_endpoint" ) ,
8077 type_ : ( NGX_HTTP_LOC_CONF | NGX_HTTP_SRV_CONF | NGX_CONF_TAKE1 ) as ngx_uint_t ,
8178 set : Some ( ngx_http_awssigv4_commands_set_s3_endpoint) ,
82- conf : NGX_RS_HTTP_LOC_CONF_OFFSET ,
79+ conf : NGX_HTTP_LOC_CONF_OFFSET ,
8380 offset : 0 ,
8481 post : std:: ptr:: null_mut ( ) ,
8582 } ,
0 commit comments