pub trait HttpFetchBackend: Send + Sync {
// Required method
fn fetch<'life0, 'async_trait>(
&'life0 self,
req: HttpFetchRequest,
limits: HttpFetchLimits,
) -> Pin<Box<dyn Future<Output = Result<HttpFetchResponse, HttpFetchError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Backend trait for outbound HTTP from WASM plugins.
Declared in vane-core so vane-wasm can call it without depending on
vane-engine. vane-engine provides the concrete impl wrapping TcpPool.
Tests substitute a mock. See spec/crates/engine-wasm.md § Host functions.