Skip to content

Commit ca3ba3b

Browse files
committed
Move binding/http mod into its own file
Signed-off-by: Jim Crossley <[email protected]>
1 parent 96c69d9 commit ca3ba3b

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/binding/http/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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+
}

src/binding/mod.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
#[cfg(feature = "actix")]
44
pub mod actix;
5+
#[cfg(any(feature = "actix", feature = "warp", feature = "reqwest"))]
6+
pub mod http;
57
#[cfg(feature = "rdkafka")]
68
pub mod rdkafka;
79
#[cfg(feature = "reqwest")]
@@ -17,14 +19,6 @@ pub(crate) mod kafka {
1719
}
1820
}
1921

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-
2822
#[cfg(any(feature = "actix", feature = "warp"))]
2923
#[macro_export]
3024
macro_rules! str_to_header_value {

0 commit comments

Comments
 (0)