dependabot[bot]
8c31d137aa
build(deps): bump taiki-e/install-action from 2.26.18 to 2.27.2 ( #3294 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2024-02-19 12:31:10 +00:00
Amit Upadhyay
c0615f28ed
Make compression middleware prefer brotli over zstd over gzip ( #3189 )
...
* AcceptEncoding.preference() prefers brotli > zstd > gzip
* AcceptEncoding.{ranked,negotiate}() prefers brotli > zstd > gzip
* changelog entry
* use browser-realistic encoding tests
* fix choosing identity when q=0
---------
Co-authored-by: Rob Ede <robjtede@icloud.com>
2023-11-19 18:54:08 +00:00
Rob Ede
ff8fd2f7b5
modernize ContentLength
2023-07-22 18:01:59 +01:00
Rob Ede
6a0ea51b15
add ContentLength
typed header ( #2490 )
2023-07-22 03:16:01 +01:00
Rob Ede
3eb5a059ad
chore: address clippy warnings
2023-07-20 11:42:20 +01:00
Rob Ede
db99da5daf
do not compress media types ( #3075 )
...
* misc: add temporary nix file
* Add test to check content type image/*
* misc: add unit test for expected behaviour jpeg
* feat(compress): add compress function to middleware
* feat(compress): use response content type to decide compress
* feat(compress): give more control to the user
* misc: improve default compress function
* add Compress::with_predicate
* remove predicate options
* assert auto traits on Compress
* fix changelog
---------
Co-authored-by: William R. Arellano <arellanowr@gmail.com>
2023-07-19 20:24:32 +01:00
Rob Ede
79a38e0628
apply standard formatting
2023-07-17 02:38:12 +01:00
Rob Ede
a2e2c30d59
use tokio-util deps directly where possible
2022-10-30 19:47:49 +00:00
Rob Ede
cc7145d41d
rust 1.64 clippy run ( #2891 )
2022-09-25 20:54:17 +01:00
Rob Ede
909461087c
add ContentDisposition::attachment
constructor ( #2867 )
2022-09-13 01:19:25 +01:00
Rob Ede
6408291ab0
appease clippy by deriving Eq on a bunch of items ( #2818 )
2022-07-23 16:26:48 +01:00
Rob Ede
16c7c16463
reduce scope of once_cell change
2022-07-22 20:19:02 +01:00
Rob Ede
3d621677a5
clippy
2022-02-08 08:00:47 +00:00
Rob Ede
bcdde1d4ea
move actix-web to own dir
2022-02-01 00:30:41 +00:00