Update Rust crate tower-http to 0.4 #16
Merged
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.3
->0.4
Release Notes
tower-rs/tower-http
v0.4.0
: v0.4.0Compare Source
Added
RequestDecompression
middleware (#282)Default
forCompressionBody
(#323)Changed
ServeDir
andServeFile
's error types are nowInfallible
and any IO errorswill be converted into responses. Use
try_call
to generate error responses manually (BREAKING) (#283)ServeDir::fallback
andServeDir::not_found_service
now requiresthe fallback service to use
Infallible
as its error type (BREAKING) (#283)Removed
RequireAuthorization
in favor ofValidateRequest
(BREAKING) (#290)Fixed
ServeDir
, convertio::ErrorKind::NotADirectory
to404 Not Found
(#331)v0.3.5
: v0.3.5Compare Source
Added
NormalizePath
middleware (#275)ValidateRequest
middleware (#289)RequestBodyTimeout
middleware (#303)Changed
Fixed
on_response
callback (#278)*
) is passed toAllowOrigin::list
. UseAllowOrigin::any()
instead (#285)v0.3.4
: v0.3.4Compare Source
Added
Timeout
middleware (#270)RequestBodyLimit
middleware (#271)v0.3.3
: v0.3.3Compare 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
: v0.3.2Compare Source
Fixed
ServeDir
's fallback instead of the actual ones (#258)v0.3.1
: v0.3.1Compare 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)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - 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 Mend Renovate. View repository job log here.