Update Rust crate actix-multipart to 0.7.0 #251
Loading…
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.0
Release 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
/app
pathfor application with
/app
prefix.Check
App::prefix()
api doc.
Add
CookieSessionBackend::http_only
method to setHttpOnly
directive 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::StaticFileConfig
to provide means of customizing staticfile services. It allows to map
mime
toContent-Disposition
,specify whether to use
ETag
andLast-Modified
and allowed methods.Add
.has_prefixed_resource()
method torouter::ResourceInfo
for route matching with prefix awareness
Add
HttpMessage::readlines()
for reading line by line.Add
ClientRequestBuilder::form()
for sendingapplication/x-www-form-urlencoded
requests.Add method to configure custom error handler to
Form
extractor.Add methods to
HttpResponse
to retrieve, add, and delete cookiesAdd
.set_content_type()
and.set_content_disposition()
methodsto
fs::NamedFile
to 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::actix
module.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
CookieSessionBackend
sets 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&self
instead of&mut self
Handler::handle()
uses&HttpRequest
instead ofHttpRequest
Added header
User-Agent: Actix-web/<current_version>
to default headers when building a requestport
Extensions
type from http create, we don't needSend + Sync
HttpRequest::query()
returnsRef<HashMap<String, String>>
HttpRequest::cookies()
returnsRef<Vec<Cookie<'static>>>
StaticFiles::new()
returnsResult<StaticFiles<S>, Error>
instead ofStaticFiles<S>
StaticFiles
uses 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.
Renovate Ignore Notification
Because you closed this PR without merging, Renovate will ignore this update (
0.7.0
). You will get a PR once a newer version is released. To ignore this dependency forever, add it to theignoreDeps
array of your Renovate config.If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.