Skip to main content

forward_http_request

Function forward_http_request 

Source
fn forward_http_request(
    url: &str,
    request: &Request<Vec<u8>>,
    method: Method,
) -> Result<(u16, Vec<u8>, HashMap<String, String>), String>
Expand description

Forward an HTTP request to a local service

§Parameters

  • url: The full URL to forward to (e.g., “http://127.0.0.1:8080/path”)
  • request: The original Tauri request
  • method: The HTTP method to use

§Returns

A Tauri response with status, headers, and body from the forwarded request