pub struct HttpFunction { /* private fields */ }
Expand description
An HTTP task function for making API requests asynchronously.
This implementation uses the async reqwest client for efficient non-blocking HTTP requests. It supports different HTTP methods, headers, and parsing responses into the message payload.
Implementations§
Trait Implementations§
Source§impl AsyncFunctionHandler for HttpFunction
impl AsyncFunctionHandler for HttpFunction
Source§fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
message: &'life1 mut Message,
input: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<(usize, Vec<Change>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
message: &'life1 mut Message,
input: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<(usize, Vec<Change>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute the function asynchronously on a message with input parameters Read more
Auto Trait Implementations§
impl Freeze for HttpFunction
impl !RefUnwindSafe for HttpFunction
impl Send for HttpFunction
impl Sync for HttpFunction
impl Unpin for HttpFunction
impl !UnwindSafe for HttpFunction
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