use crate::{HttpInboundBuilder, HttpOutboundAdapterBuilder};
pub(crate) use allora_core::adapter::{InboundStage, OutboundStage};
pub trait InboundHttpExt {
fn http(self) -> HttpInboundBuilder;
}
impl InboundHttpExt for InboundStage {
fn http(self) -> HttpInboundBuilder {
HttpInboundBuilder::new()
}
}
pub trait OutboundHttpExt {
fn http(self) -> HttpOutboundAdapterBuilder;
}
impl OutboundHttpExt for OutboundStage {
fn http(self) -> HttpOutboundAdapterBuilder {
HttpOutboundAdapterBuilder::default()
}
}