Update Rust crate actix-multipart to 0.7.0 #123
Reference in New Issue
Block a user
No description provided.
Delete Branch "renovate/actix-multipart-0.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
0.6.1->0.7.0Release Notes
actix/actix-web (actix-multipart)
v0.7.2: Actix web 0.7.2Compare Source
Changes
Added
Add implementation of
FromRequest<S>forOption<T>andResult<T, Error>Allow to handle application prefix, i.e. allow to handle
/apppathfor application with
/appprefix.Check
App::prefix()api doc.
Add
CookieSessionBackend::http_onlymethod to setHttpOnlydirective of cookiesChanged
Upgrade to cookie 0.11
Removed the timestamp from the default logger middleware
Fixed
Missing response header "content-encoding" #421
Fix stream draining for http/2 connections #290
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: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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 Renovate Bot.
Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠️ Warning: custom changes will be lost.