From 6bcd67678574e09131e1edb234bc29b448d674ef Mon Sep 17 00:00:00 2001 From: david-perez Date: Thu, 20 Apr 2023 13:45:08 +0200 Subject: [PATCH] Undeprecate `{content_type,accept}_header_classifier` from `aws-smithy-http-server` (#2604) These functions were mistakenly deprecated when deprecating the old service builder API in #1886. However, they're fine, and they're internally used by the generated server SDKs. The module they reside in is `#[doc(hidden)]`. ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._ --- rust-runtime/aws-smithy-http-server/src/protocols.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rust-runtime/aws-smithy-http-server/src/protocols.rs b/rust-runtime/aws-smithy-http-server/src/protocols.rs index a2428a768b..2db5e7163d 100644 --- a/rust-runtime/aws-smithy-http-server/src/protocols.rs +++ b/rust-runtime/aws-smithy-http-server/src/protocols.rs @@ -34,7 +34,7 @@ fn parse_content_type(headers: &HeaderMap) -> Result, @@ -66,7 +66,6 @@ pub fn content_type_header_classifier( Ok(()) } -#[allow(deprecated)] pub fn accept_header_classifier(headers: &HeaderMap, content_type: &'static str) -> bool { if !headers.contains_key(http::header::ACCEPT) { return true; @@ -105,7 +104,6 @@ pub fn accept_header_classifier(headers: &HeaderMap, content_type: &'static str) }) } -#[allow(deprecated)] #[cfg(test)] mod tests { use super::*;