MCPcopy Create free account
hub / github.com/YougLin-dev/amp-server / handle_proxy_request_with_params

Method handle_proxy_request_with_params

api/src/proxy/service.rs:191–200  ·  view source on GitHub ↗
(
        mut config: EndpointConfig,
        params: HashMap<String, String>,
        req: Request,
    )

Source from the content-addressed store, hash-verified

189 }
190
191 async fn handle_proxy_request_with_params(
192 mut config: EndpointConfig,
193 params: HashMap<String, String>,
194 req: Request,
195 ) -> Result<Response, (StatusCode, String)> {
196 // Compute target URL from template and params
197 let target = Self::substitute_placeholders(&config.target_url, &params);
198 config.target_url = target;
199 Self::handle_proxy_request(config, req).await
200 }
201
202 async fn handle_stream_response(
203 response: reqwest::Response,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected