pub trait HttpClient {
// Required method
fn post_json<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
url: &'life1 str,
bearer_token: &'life2 str,
body: &'life3 ChatRequest,
) -> Pin<Box<dyn Future<Output = Result<ChatResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}Expand description
Transport abstraction — reqwest for native, worker::Fetch for WASM.
Native builds require Send; WASM builds relax it via ?Send.