tower_helmet/header/
x_download_options.rs1use http::header::{HeaderName, InvalidHeaderValue};
2use http::HeaderValue;
3
4use crate::IntoHeader;
5
6pub struct XDownloadOptions;
10
11impl Default for XDownloadOptions {
12 fn default() -> Self {
13 XDownloadOptions
14 }
15}
16
17impl IntoHeader for XDownloadOptions {
18 fn header_name(&self) -> HeaderName {
19 HeaderName::from_static("x-download-options")
20 }
21
22 fn header_value(&self) -> Result<HeaderValue, InvalidHeaderValue> {
23 HeaderValue::from_str("noopen")
24 }
25}