use ironflow_store::models::StepKind;
use crate::config::{HttpConfig, StepConfig};
use crate::context::WorkflowContext;
use crate::error::EngineError;
use crate::executor::StepOutput;
impl WorkflowContext {
pub async fn http(
&mut self,
name: &str,
config: HttpConfig,
) -> Result<StepOutput, EngineError> {
self.execute_step(name, StepKind::Http, StepConfig::Http(config))
.await
}
}