Skip to main content

post_to_host

Function post_to_host 

Source
pub(crate) async fn post_to_host(
    http_client: &Client,
    host: &HostIpc,
    route: &str,
    body: Value,
    timeout: Option<Duration>,
) -> Result<Value, String>
Expand description

ui_handlers::proxy_to_host_timeout for a caller that holds the HTTP client rather than the whole AppState (Tower’s sampler, app_api/tower_pane.rs).