File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change
1
+ pub static SPEC_VERSION_HEADER : & str = "ce-specversion" ;
2
+
3
+ pub fn header_prefix ( name : & str ) -> String {
4
+ super :: header_prefix ( "ce-" , name)
5
+ }
Original file line number Diff line number Diff line change 2
2
3
3
#[ cfg( feature = "actix" ) ]
4
4
pub mod actix;
5
+ #[ cfg( any( feature = "actix" , feature = "warp" , feature = "reqwest" ) ) ]
6
+ pub mod http;
5
7
#[ cfg( feature = "rdkafka" ) ]
6
8
pub mod rdkafka;
7
9
#[ cfg( feature = "reqwest" ) ]
@@ -17,14 +19,6 @@ pub(crate) mod kafka {
17
19
}
18
20
}
19
21
20
- #[ cfg( any( feature = "actix" , feature = "warp" , feature = "reqwest" ) ) ]
21
- pub ( crate ) mod http {
22
- pub static SPEC_VERSION_HEADER : & str = "ce-specversion" ;
23
- pub fn header_prefix ( name : & str ) -> String {
24
- super :: header_prefix ( "ce-" , name)
25
- }
26
- }
27
-
28
22
#[ cfg( any( feature = "actix" , feature = "warp" ) ) ]
29
23
#[ macro_export]
30
24
macro_rules! str_to_header_value {
You can’t perform that action at this time.
0 commit comments