As tonic's own Extensions type do not anything than the wrapper type of http::Extensions, there seems to be no advantage other than not being effected from changes by http::Extensions. This benefit might be small because the http crate's stability term is longer than tonic's one.
Motivation
Makes
tonic
's implementations thinner.As
tonic
's ownExtensions
type do not anything than the wrapper type ofhttp::Extensions
, there seems to be no advantage other than not being effected from changes byhttp::Extensions
. This benefit might be small because thehttp
crate's stability term is longer thantonic
's one.Solution
Uses
http::Extensions
directly.