// SPDX-License-Identifier: MIT OR Apache-2.0// This file is part of Static Web Server.// See https://static-web-server.net/ for more information// Copyright (C) 2019-present Jose Quintana <joseluisq.net>//! Module to append custom HTTP headers via TOML config file.//!use ;use crateHeaders;/// Append custom HTTP headers to current response.if let Some = headers_optsfor headers_entry in headers_vec.iter// Match header glob pattern against request uriif headers_entry.source.is_match// Add/update headers if uri matchesfor in &headers_entry.headersresp.headers_mut.insert;