From 0a19455a05fcdbb5ea863f28ca8ac9ac36477c64 Mon Sep 17 00:00:00 2001 From: Douman Date: Mon, 4 Mar 2024 02:30:16 +0900 Subject: [PATCH] Expose Extensions::from_http to user (#1644) --- tonic/src/extensions.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tonic/src/extensions.rs b/tonic/src/extensions.rs index 67a7137be..37d84b87b 100644 --- a/tonic/src/extensions.rs +++ b/tonic/src/extensions.rs @@ -55,7 +55,8 @@ impl Extensions { } #[inline] - pub(crate) fn from_http(http: http::Extensions) -> Self { + /// Convert from `http::Extensions` + pub fn from_http(http: http::Extensions) -> Self { Self { inner: http } }