pub struct HttpExecutor<'a> { /* private fields */ }Expand description
Executor for HTTP steps.
Sends an HTTP request and captures the response status, headers, and body.
Implementations§
Source§impl<'a> HttpExecutor<'a>
impl<'a> HttpExecutor<'a>
Sourcepub fn new(config: &'a HttpConfig) -> Self
pub fn new(config: &'a HttpConfig) -> Self
Create a new HTTP executor from a config reference.
Trait Implementations§
Source§impl StepExecutor for HttpExecutor<'_>
impl StepExecutor for HttpExecutor<'_>
Source§async fn execute(
&self,
_provider: &Arc<dyn AgentProvider>,
) -> Result<StepOutput, EngineError>
async fn execute( &self, _provider: &Arc<dyn AgentProvider>, ) -> Result<StepOutput, EngineError>
Execute the step and return structured output. Read more
Auto Trait Implementations§
impl<'a> Freeze for HttpExecutor<'a>
impl<'a> RefUnwindSafe for HttpExecutor<'a>
impl<'a> Send for HttpExecutor<'a>
impl<'a> Sync for HttpExecutor<'a>
impl<'a> Unpin for HttpExecutor<'a>
impl<'a> UnsafeUnpin for HttpExecutor<'a>
impl<'a> UnwindSafe for HttpExecutor<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more