From 9cfb0d4b6b983065e5d21b2ccd53c85500e7b07d Mon Sep 17 00:00:00 2001 From: david-perez Date: Thu, 20 Apr 2023 11:04:58 +0200 Subject: [PATCH] Undeprecate `{content_type,accept}_header_classifier` from `aws-smithy-http-server` 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)]`. --- 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::*;