@@ -557,22 +557,23 @@ impl Method {
557
557
fn from_ngx ( t : ngx_uint_t ) -> Method {
558
558
let t = t as _ ;
559
559
match t {
560
- NGX_HTTP_GET => Method ( MethodInner :: Get ) ,
561
- NGX_HTTP_HEAD => Method ( MethodInner :: Head ) ,
562
- NGX_HTTP_POST => Method ( MethodInner :: Post ) ,
563
- NGX_HTTP_PUT => Method ( MethodInner :: Put ) ,
564
- NGX_HTTP_DELETE => Method ( MethodInner :: Delete ) ,
565
- NGX_HTTP_MKCOL => Method ( MethodInner :: Mkcol ) ,
566
- NGX_HTTP_COPY => Method ( MethodInner :: Copy ) ,
567
- NGX_HTTP_MOVE => Method ( MethodInner :: Move ) ,
568
- NGX_HTTP_OPTIONS => Method ( MethodInner :: Options ) ,
569
- NGX_HTTP_PROPFIND => Method ( MethodInner :: Propfind ) ,
570
- NGX_HTTP_PROPPATCH => Method ( MethodInner :: Proppatch ) ,
571
- NGX_HTTP_LOCK => Method ( MethodInner :: Lock ) ,
572
- NGX_HTTP_UNLOCK => Method ( MethodInner :: Unlock ) ,
573
- NGX_HTTP_PATCH => Method ( MethodInner :: Patch ) ,
574
- NGX_HTTP_TRACE => Method ( MethodInner :: Trace ) ,
575
- NGX_HTTP_CONNECT => Method ( MethodInner :: Connect ) ,
560
+ crate :: ffi:: NGX_HTTP_GET => Method ( MethodInner :: Get ) ,
561
+ crate :: ffi:: NGX_HTTP_HEAD => Method ( MethodInner :: Head ) ,
562
+ crate :: ffi:: NGX_HTTP_POST => Method ( MethodInner :: Post ) ,
563
+ crate :: ffi:: NGX_HTTP_PUT => Method ( MethodInner :: Put ) ,
564
+ crate :: ffi:: NGX_HTTP_DELETE => Method ( MethodInner :: Delete ) ,
565
+ crate :: ffi:: NGX_HTTP_MKCOL => Method ( MethodInner :: Mkcol ) ,
566
+ crate :: ffi:: NGX_HTTP_COPY => Method ( MethodInner :: Copy ) ,
567
+ crate :: ffi:: NGX_HTTP_MOVE => Method ( MethodInner :: Move ) ,
568
+ crate :: ffi:: NGX_HTTP_OPTIONS => Method ( MethodInner :: Options ) ,
569
+ crate :: ffi:: NGX_HTTP_PROPFIND => Method ( MethodInner :: Propfind ) ,
570
+ crate :: ffi:: NGX_HTTP_PROPPATCH => Method ( MethodInner :: Proppatch ) ,
571
+ crate :: ffi:: NGX_HTTP_LOCK => Method ( MethodInner :: Lock ) ,
572
+ crate :: ffi:: NGX_HTTP_UNLOCK => Method ( MethodInner :: Unlock ) ,
573
+ crate :: ffi:: NGX_HTTP_PATCH => Method ( MethodInner :: Patch ) ,
574
+ crate :: ffi:: NGX_HTTP_TRACE => Method ( MethodInner :: Trace ) ,
575
+ #[ cfg( nginx1_21_1) ]
576
+ crate :: ffi:: NGX_HTTP_CONNECT => Method ( MethodInner :: Connect ) ,
576
577
_ => Method ( MethodInner :: Unknown ) ,
577
578
}
578
579
}
0 commit comments