build(deps): update rust crate actix-files to 0.7.0 - #515
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.6.6→0.7.0Release Notes
actix/actix-web (actix-files)
v0.7.0: Actix web 0.7.0Compare Source
Changes
Added
Add
fs::StaticFileConfigto provide means of customizing staticfile services. It allows to map
mimetoContent-Disposition,specify whether to use
ETagandLast-Modifiedand allowed methods.Add
.has_prefixed_resource()method torouter::ResourceInfofor route matching with prefix awareness
Add
HttpMessage::readlines()for reading line by line.Add
ClientRequestBuilder::form()for sendingapplication/x-www-form-urlencodedrequests.Add method to configure custom error handler to
Formextractor.Add methods to
HttpResponseto retrieve, add, and delete cookiesAdd
.set_content_type()and.set_content_disposition()methodsto
fs::NamedFileto allow overriding the values inferred by defaultAdd
fs::file_extension_to_mime()helper function to get the MIMEtype for a file extension
Add
.content_disposition()method to parse Content-Disposition ofmultipart fields
Re-export
actix::prelude::*asactix_web::actixmodule.HttpRequest::url_for_static()for a named route with no variables segmentsPropagation of the application's default resource to scopes that haven't set a default resource.
Changed
Min rustc version is 1.26
Use tokio instead of tokio-core
CookieSessionBackendsets percent encoded cookies for outgoing HTTP messages.Became possible to use enums with query extractor.
Issue #371.
Example
HttpResponse::into_builder()now moves cookies into the builderinstead of dropping them
For safety and performance reasons
Handler::handle()uses&selfinstead of&mut selfHandler::handle()uses&HttpRequestinstead ofHttpRequestAdded header
User-Agent: Actix-web/<current_version>to default headers when building a requestport
Extensionstype from http create, we don't needSend + SyncHttpRequest::query()returnsRef<HashMap<String, String>>HttpRequest::cookies()returnsRef<Vec<Cookie<'static>>>StaticFiles::new()returnsResult<StaticFiles<S>, Error>instead ofStaticFiles<S>StaticFilesuses the default handler if the file does not existRemoved
Remove
Route::with2()andRoute::with3()use tuple of extractors instead.Remove
HttpMessage::range()Configuration
📅 Schedule: (UTC)
* 0-3 * * 1)🚦 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 was generated by Mend Renovate. View the repository job log.