Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
So much good stuff in this release 🥳
Added
ServiceBuilderExt
which adds methods totower::ServiceBuilder
foradding middleware from tower-http (#106)
SetRequestId
andPropagateRequestId
middleware (#150)DefaultMakeSpan::level
to make log level of tracing spans easily configurable (#124)LatencyUnit::Seconds
for formatting latencies as seconds (#179)GrpcErrorsAsFailures
(#189)be compressed. This can be used to disable compression of small responses,
responses with a certain
content-type
, or something user defined (#172)Range
requests (#173)Content-Length
header set (#169)Changed
AddAuthorization
,InFlightRequests
,SetRequestHeader
,SetResponseHeader
,AddExtension
,MapRequestBody
andMapResponseBody
now requires underlying service to use
http::Request<ReqBody>
andhttp::Response<ResBody>
as request and responses (#182) (BREAKING)SetRequestHeaderLayer
and
SetResponseHeaderLayer
. This removes the need (and possibility) to specify abody type for these layers (#148) (BREAKING)
Box<dyn std::error::Error + Send + Sync>
. This makes them usable ifthe body they're wrapping uses
Box<dyn std::error::Error + Send + Sync>
asits error type which they previously weren't (#166) (BREAKING)
ServeDir
andServeFile
toServeFileSystemResponseBody
andServeFileSystemResponseFuture
(#187) (BREAKING)AuthorizeRequest
andAsyncAuthorizeRequest
traits to be simpler (#192) (BREAKING)Removed
BodyOrIoError
. Its been replaced withBox<dyn std::error::Error + Send + Sync>
(#166) (BREAKING)compression
anddecompression
feature. They were unnecessaryand
compression-full
/decompression-full
can be used to get fullcompression/decompression support. For more granular control
[compression|decompression]-gzip
,[compression|decompression]-br
and[compression|decompression]-deflate
maybe used instead (#170) (BREAKING)