Skip to main content

proxy

Function proxy 

Source
pub async fn proxy(base_url: &str, endpoint: &str, body: Value) -> MediaResponse
Expand description

Forward a JSON body to a media-engine endpoint ({base_url}{endpoint}) and pass the response through. base_url is the local sd-server base (ImageHost::sd_base_url).