allora_http/
adapter_dsl.rs1use crate::{HttpInboundBuilder, HttpOutboundAdapterBuilder};
2pub(crate) use allora_core::adapter::{InboundStage, OutboundStage};
3
4pub trait InboundHttpExt {
6 fn http(self) -> HttpInboundBuilder;
8}
9
10impl InboundHttpExt for InboundStage {
11 fn http(self) -> HttpInboundBuilder {
12 HttpInboundBuilder::new()
13 }
14}
15
16pub trait OutboundHttpExt {
18 fn http(self) -> HttpOutboundAdapterBuilder;
20}
21
22impl OutboundHttpExt for OutboundStage {
23 fn http(self) -> HttpOutboundAdapterBuilder {
24 HttpOutboundAdapterBuilder::default()
25 }
26}