| 8 | |
| 9 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 10 | pub 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")] |
nothing calls this directly
no outgoing calls
no test coverage detected