use azure_core::http::ClientOptions;
use std::borrow::Cow;
pub static STORAGE_ALLOWED_HEADERS: &[&str] = &[
"access-control-allow-origin",
"x-ms-date",
"x-ms-error-code",
"x-ms-version",
"content-encoding",
"content-language",
"vary",
"x-ms-approximate-messages-count",
"x-ms-popreceipt",
"x-ms-time-next-visible",
"x-ms-account-kind",
"x-ms-sku-name",
];
pub static STORAGE_ALLOWED_QUERY_PARAMETERS: &[&str] = &[
"se",
"si",
"sip",
"sp",
"spr",
"ss",
"srt",
"st",
"sv",
"ske",
"skoid",
"sks",
"skt",
"sktid",
"skv",
"comp",
"restype",
"maxresults",
"include",
"marker",
"prefix",
"numofmessages",
"visibilitytimeout",
"messagettl",
"popreceipt",
"peekonly",
];
pub(crate) fn apply_storage_logging_defaults(options: &mut ClientOptions) {
options
.logging
.additional_allowed_header_names
.extend(STORAGE_ALLOWED_HEADERS.iter().map(|s| Cow::Borrowed(*s)));
options.logging.additional_allowed_query_params.extend(
STORAGE_ALLOWED_QUERY_PARAMETERS
.iter()
.map(|s| Cow::Borrowed(*s)),
);
}