// 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 that allows to rewrite request URLs with pattern matching support.//!use crateRewrites;/// It returns a rewrite's destination path if the current request uri/// matches against the provided rewrites array.uri_path: &'a str,rewrites_opts: ,if let Some = rewrites_optsfor rewrites_entry in rewrites_vec.iter// Match source glob pattern against request uri pathif rewrites_entry.source.is_matchreturn Some;None