fix(deps): update rust crate tower-http to 0.3.3 #21
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.
This PR contains the following updates:
0.1.2
->0.3.3
Release Notes
tower-rs/tower-http
v0.3.3
Compare Source
Added
ServeDir::call_fallback_on_method_not_allowed
to allow calling the fallbackfor requests that aren't
GET
orHEAD
(#264)MakeRequestUuid
for generating request ids using UUIDs (#266)Fixed
Allow
header for405 Method Not Allowed
responses (#263)v0.3.2
Compare Source
Fixed
ServeDir
's fallback instead of the actual ones (#258)v0.3.1
Compare Source
Fixed
Access-Control-Allow-Origin
header when a list ofallowed origins is configured (the previous behavior of sending a comma-separated list like for
allowed methods and allowed headers is not allowed by any standard)
v0.3.0
Compare Source
Added
ServeDir::{fallback, not_found_service}
for calling another service ifthe file cannot be found (#243)
SetStatus
to override status codes (#248)ServeDir
andServeFile
now respond with405 Method Not Allowed
to requests where themethod isn't
GET
orHEAD
(#249)CorsLayer::very_permissive
which is likeCorsLayer::permissive
except it (truly) allows credentials. This is madepossible by mirroring the request's origin as well as method and headers
back as CORS-whitelisted ones (#237)
Vary
header (#237)Changed
allow-credentials: true
fromCorsLayer::permissive
.It never actually took effect in compliant browsers because it is mutually
exclusive with the
*
wildcard (Any
) on origins, methods and headers (#237)will continue to work. (BREAKING) (#237)
Any
incombination with
.allow_credentials(true)
. This configuration workedbefore, but resulted in browsers ignoring the
allow-credentials
header,which defeats the purpose of setting it and can be very annoying to debug
(#237)
Fixed
v0.2.5
Compare Source
Fixed
v0.2.4
Compare Source
Added
CatchPanic
middleware which catches panics and converts theminto
500 Internal Server
responses (#214)Fixed
Accept-Encoding
more robust (#220)v0.2.3
Compare Source
Changed
Fixed
allow_headers
,allow_methods
,allow_origin
and
expose_headers
now do nothing if given an emptyVec
, instead of sendingthe respective header with an empty value (#218)
v0.2.2
Compare Source
Fixed
Vary
headers for CORS preflight responses (#216)v0.2.1
Compare Source
Added
Last-Modified
(and friends) headers inServeDir
andServeFile
(#145)AsyncRequireAuthorization::layer
(#195)Fixed
Cors
: SetVary
header (#199)ServeDir
andServeFile
: Fix potential directory traversal attack due toimproper path validation on Windows (#204)
v0.2.0
Compare Source
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)
v0.1.3
Compare Source
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.