pub struct HttpCallConfig {
pub connector: String,
pub method: HttpMethod,
pub path: Option<String>,
pub path_logic: Option<Value>,
pub path_logic_index: Option<usize>,
pub headers: HashMap<String, String>,
pub body: Option<Value>,
pub body_logic: Option<Value>,
pub body_logic_index: Option<usize>,
pub response_path: Option<String>,
pub timeout_ms: u64,
}Expand description
Configuration for the http_call integration function.
The actual HTTP implementation is provided by the service layer via AsyncFunctionHandler. This struct provides typed config validation and pre-compilation of JSONLogic expressions.
Fields§
§connector: StringNamed connector reference (resolved by service layer)
method: HttpMethodHTTP method
path: Option<String>Static path string
path_logic: Option<Value>JSONLogic expression to compute path dynamically
path_logic_index: Option<usize>Cache index for compiled path_logic
headers: HashMap<String, String>Static headers
body: Option<Value>Static request body
body_logic: Option<Value>JSONLogic expression to compute body dynamically
body_logic_index: Option<usize>Cache index for compiled body_logic
response_path: Option<String>JSONPath/dot-path to extract from response and merge into context
timeout_ms: u64Request timeout in milliseconds (default: 30000)
Trait Implementations§
Source§impl Clone for HttpCallConfig
impl Clone for HttpCallConfig
Source§fn clone(&self) -> HttpCallConfig
fn clone(&self) -> HttpCallConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpCallConfig
impl Debug for HttpCallConfig
Source§impl<'de> Deserialize<'de> for HttpCallConfig
impl<'de> Deserialize<'de> for HttpCallConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HttpCallConfig
impl RefUnwindSafe for HttpCallConfig
impl Send for HttpCallConfig
impl Sync for HttpCallConfig
impl Unpin for HttpCallConfig
impl UnsafeUnpin for HttpCallConfig
impl UnwindSafe for HttpCallConfig
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