stream proxy headers struct added
@@ -168,6 +168,16 @@ where
))
}
+#[derive(Default, Clone, PartialEq, Serialize, Deserialize)]
+#[cfg_attr(debug_assertions, derive(Debug))]
+#[serde(rename_all = "camelCase")]
+pub struct StreamProxyHeaders {
+ #[serde(default, skip_serializing_if = "HashMap::is_empty")]
+ pub request: HashMap<String, String>,
+ #[serde(default, skip_serializing_if = "HashMap::is_empty")]
+ pub response: HashMap<String, String>,
+}
+
#[derive(Default, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(debug_assertions, derive(Debug))]
#[serde(rename_all = "camelCase")]
@@ -178,8 +188,8 @@ pub struct StreamBehaviorHints {
pub binge_group: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub country_whitelist: Option<Vec<String>>,
- #[serde(default, skip_serializing_if = "HashMap::is_empty")]
- pub headers: HashMap<String, String>,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub proxy_headers: Option<StreamProxyHeaders>,
#[serde(flatten)]
pub other: HashMap<String, serde_json::Value>,
}
