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

Class EndpointConfig

api/src/proxy/config.rs:10–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9#[derive(Debug, Clone, Serialize, Deserialize)]
10pub struct EndpointConfig {
11 /// Local route path
12 pub path: String,
13 /// Target forwarding URL
14 pub target_url: String,
15 /// HTTP method (GET, POST, PUT, DELETE, etc.)
16 pub method: String,
17 /// Response type (json, sse, stream, html)
18 pub response_type: ResponseType,
19 /// Custom request headers
20 pub custom_headers: HashMap<String, String>,
21 /// List of request headers to forward
22 pub forward_request_headers: Vec<String>,
23 /// List of response headers to forward
24 pub forward_response_headers: Vec<String>,
25 /// Whether this endpoint is enabled
26 pub enabled: bool,
27}
28
29#[derive(Debug, Clone, Serialize, Deserialize)]
30#[serde(rename_all = "lowercase")]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected