@@ -3,12 +3,9 @@ use std::ptr::addr_of;
3
3
4
4
use http:: HeaderMap ;
5
5
use 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:: * ;
12
9
use ngx:: http:: * ;
13
10
use ngx:: { http_request_handler, ngx_log_debug_http, ngx_null_command, ngx_string} ;
14
11
@@ -47,39 +44,39 @@ static mut NGX_HTTP_AWSSIGV4_COMMANDS: [ngx_command_t; 6] = [
47
44
name : ngx_string ! ( "awssigv4" ) ,
48
45
type_ : ( NGX_HTTP_LOC_CONF | NGX_HTTP_SRV_CONF | NGX_CONF_TAKE1 ) as ngx_uint_t ,
49
46
set : Some ( ngx_http_awssigv4_commands_set_enable) ,
50
- conf : NGX_RS_HTTP_LOC_CONF_OFFSET ,
47
+ conf : NGX_HTTP_LOC_CONF_OFFSET ,
51
48
offset : 0 ,
52
49
post : std:: ptr:: null_mut ( ) ,
53
50
} ,
54
51
ngx_command_t {
55
52
name : ngx_string ! ( "awssigv4_access_key" ) ,
56
53
type_ : ( NGX_HTTP_LOC_CONF | NGX_HTTP_SRV_CONF | NGX_CONF_TAKE1 ) as ngx_uint_t ,
57
54
set : Some ( ngx_http_awssigv4_commands_set_access_key) ,
58
- conf : NGX_RS_HTTP_LOC_CONF_OFFSET ,
55
+ conf : NGX_HTTP_LOC_CONF_OFFSET ,
59
56
offset : 0 ,
60
57
post : std:: ptr:: null_mut ( ) ,
61
58
} ,
62
59
ngx_command_t {
63
60
name : ngx_string ! ( "awssigv4_secret_key" ) ,
64
61
type_ : ( NGX_HTTP_LOC_CONF | NGX_HTTP_SRV_CONF | NGX_CONF_TAKE1 ) as ngx_uint_t ,
65
62
set : Some ( ngx_http_awssigv4_commands_set_secret_key) ,
66
- conf : NGX_RS_HTTP_LOC_CONF_OFFSET ,
63
+ conf : NGX_HTTP_LOC_CONF_OFFSET ,
67
64
offset : 0 ,
68
65
post : std:: ptr:: null_mut ( ) ,
69
66
} ,
70
67
ngx_command_t {
71
68
name : ngx_string ! ( "awssigv4_s3_bucket" ) ,
72
69
type_ : ( NGX_HTTP_LOC_CONF | NGX_HTTP_SRV_CONF | NGX_CONF_TAKE1 ) as ngx_uint_t ,
73
70
set : Some ( ngx_http_awssigv4_commands_set_s3_bucket) ,
74
- conf : NGX_RS_HTTP_LOC_CONF_OFFSET ,
71
+ conf : NGX_HTTP_LOC_CONF_OFFSET ,
75
72
offset : 0 ,
76
73
post : std:: ptr:: null_mut ( ) ,
77
74
} ,
78
75
ngx_command_t {
79
76
name : ngx_string ! ( "awssigv4_s3_endpoint" ) ,
80
77
type_ : ( NGX_HTTP_LOC_CONF | NGX_HTTP_SRV_CONF | NGX_CONF_TAKE1 ) as ngx_uint_t ,
81
78
set : Some ( ngx_http_awssigv4_commands_set_s3_endpoint) ,
82
- conf : NGX_RS_HTTP_LOC_CONF_OFFSET ,
79
+ conf : NGX_HTTP_LOC_CONF_OFFSET ,
83
80
offset : 0 ,
84
81
post : std:: ptr:: null_mut ( ) ,
85
82
} ,
0 commit comments