Skip to content

Commit 2636ca0

Browse files
committed
chore(actix-web-lab): prepare release 0.24.3
1 parent 7bb3fcc commit 2636ca0

File tree

4 files changed

+46
-44
lines changed

4 files changed

+46
-44
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

actix-web-lab/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
## 0.24.3
6+
57
- Add `ConditionOption` middleware.
68

79
## 0.24.2

actix-web-lab/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "actix-web-lab"
3-
version = "0.24.2"
3+
version = "0.24.3"
44
description = "In-progress extractors and middleware for Actix Web"
55
authors = ["Rob Ede <[email protected]>"]
66
keywords = ["actix", "http", "web", "framework", "async"]

actix-web-lab/README.md

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<!-- prettier-ignore-start -->
66

77
[![crates.io](https://img.shields.io/crates/v/actix-web-lab?label=latest)](https://crates.io/crates/actix-web-lab)
8-
[![Documentation](https://docs.rs/actix-web-lab/badge.svg)](https://docs.rs/actix-web-lab/0.24.2)
8+
[![Documentation](https://docs.rs/actix-web-lab/badge.svg)](https://docs.rs/actix-web-lab/0.24.3)
99
![MIT or Apache 2.0 licensed](https://img.shields.io/crates/l/actix-web-lab.svg)
1010
<br />
11-
[![dependency status](https://deps.rs/crate/actix-web-lab/0.24.2/status.svg)](https://deps.rs/crate/actix-web-lab/0.24.2)
11+
[![dependency status](https://deps.rs/crate/actix-web-lab/0.24.3/status.svg)](https://deps.rs/crate/actix-web-lab/0.24.3)
1212
[![Download](https://img.shields.io/crates/d/actix-web-lab.svg)](https://crates.io/crates/actix-web-lab)
1313
[![codecov](https://codecov.io/gh/robjtede/actix-web-lab/branch/main/graph/badge.svg)](https://codecov.io/gh/robjtede/actix-web-lab)
1414

@@ -20,78 +20,78 @@
2020

2121
### Responders
2222

23-
- `Csv`: efficient CSV streaming [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/respond/struct.Csv.html)
24-
- `NdJson`: efficient NDJSON streaming [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/respond/struct.NdJson.html)
25-
- `DisplayStream`: efficient line-by-line `Display` streaming [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/respond/struct.DisplayStream.html)
23+
- `Csv`: efficient CSV streaming [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/respond/struct.Csv.html)
24+
- `NdJson`: efficient NDJSON streaming [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/respond/struct.NdJson.html)
25+
- `DisplayStream`: efficient line-by-line `Display` streaming [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/respond/struct.DisplayStream.html)
2626
- `Html`: (graduated 🎉) basic string wrapper that responds with HTML Content-Type [(docs)](https://docs.rs/actix-web/4/actix_web/web/struct.Html.html)
27-
- `Cbor`: basic CBOR format wrapper with appropriate Content-Type [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/respond/struct.Cbor.html)
28-
- `MessagePack`: basic MessagePack format wrapper with appropriate Content-Type [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/respond/struct.MessagePack.html)
29-
- `Sse`: semantic server-sent events (SSE) responder with a channel-like interface [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/sse/index.html)
27+
- `Cbor`: basic CBOR format wrapper with appropriate Content-Type [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/respond/struct.Cbor.html)
28+
- `MessagePack`: basic MessagePack format wrapper with appropriate Content-Type [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/respond/struct.MessagePack.html)
29+
- `Sse`: semantic server-sent events (SSE) responder with a channel-like interface [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/sse/index.html)
3030

3131
### Middleware
3232

3333
- `from_fn`: (graduated 🎉) use an async function as a middleware [(docs)](https://docs.rs/actix-web/4/actix_web/middleware/fn.from_fn.html)
34-
- `map_response`: use an async function to modify the response [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/middleware/fn.map_response.html)
35-
- `map_response_body`: use an async function to modify the response body [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/middleware/fn.map_response_body.html)
36-
- `RedirectHttps`: middleware to redirect traffic to HTTPS if connection is insecure with optional HSTS [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/middleware/struct.RedirectHttps.html)
37-
- `redirect_to_www`: function middleware to redirect traffic to `www.` if not already there [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/middleware/fn.redirect_to_www.html)
38-
- `redirect_to_non_www`: function middleware to redirect traffic to `www.` if not already there [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/middleware/fn.redirect_to_non_www.html)
39-
- `ConditionOption`: conditional middleware helper [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/middleware/struct.ConditionOption.html)
40-
- `ErrorHandlers`: alternative error handler middleware with simpler interface [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/middleware/struct.ErrorHandlers.html)
41-
- `NormalizePath`: alternative path normalizing middleware with redirect option [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/middleware/struct.NormalizePath.html)
42-
- `CatchPanic`: catch panics in wrapped handlers and middleware, returning empty 500 responses [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/middleware/struct.CatchPanic.html)
43-
- `PanicReporter`: catch panics in wrapped handlers and middleware, returning empty 500 responses [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/middleware/struct.PanicReporter.html)
44-
- `LoadShed`: sheds load when the inner service isn't ready [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/middleware/struct.LoadShed.html)
34+
- `map_response`: use an async function to modify the response [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/middleware/fn.map_response.html)
35+
- `map_response_body`: use an async function to modify the response body [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/middleware/fn.map_response_body.html)
36+
- `RedirectHttps`: middleware to redirect traffic to HTTPS if connection is insecure with optional HSTS [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/middleware/struct.RedirectHttps.html)
37+
- `redirect_to_www`: function middleware to redirect traffic to `www.` if not already there [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/middleware/fn.redirect_to_www.html)
38+
- `redirect_to_non_www`: function middleware to redirect traffic to `www.` if not already there [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/middleware/fn.redirect_to_non_www.html)
39+
- `ConditionOption`: conditional middleware helper [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/middleware/struct.ConditionOption.html)
40+
- `ErrorHandlers`: alternative error handler middleware with simpler interface [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/middleware/struct.ErrorHandlers.html)
41+
- `NormalizePath`: alternative path normalizing middleware with redirect option [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/middleware/struct.NormalizePath.html)
42+
- `CatchPanic`: catch panics in wrapped handlers and middleware, returning empty 500 responses [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/middleware/struct.CatchPanic.html)
43+
- `PanicReporter`: catch panics in wrapped handlers and middleware, returning empty 500 responses [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/middleware/struct.PanicReporter.html)
44+
- `LoadShed`: sheds load when the inner service isn't ready [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/middleware/struct.LoadShed.html)
4545

4646
### Extractors
4747

48-
- `LazyData`: app data/state initialized on first use [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/extract/struct.LazyData.html)
49-
- `SwapData`: app data/state that can be replaced at runtime (alternative to `Data<RwLock<T>>`) [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/extract/struct.SwapData.html)
50-
- `LocalData`: app data/state that uses an `Rc` internally, avoiding atomic overhead (alternative to `Data<RwLock<T>>`) [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/extract/struct.LocalData.html)
48+
- `LazyData`: app data/state initialized on first use [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/extract/struct.LazyData.html)
49+
- `SwapData`: app data/state that can be replaced at runtime (alternative to `Data<RwLock<T>>`) [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/extract/struct.SwapData.html)
50+
- `LocalData`: app data/state that uses an `Rc` internally, avoiding atomic overhead (alternative to `Data<RwLock<T>>`) [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/extract/struct.LocalData.html)
5151
- `ThinData`: (graduated 🎉) app data/state for cheaply-cloned types [(docs)](https://docs.rs/actix-web/4/actix_web/web/struct.ThinData.html)
52-
- `Json`: simplified JSON extractor with const-generic payload limits [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/extract/struct.Json.html)
53-
- `Path`: simplified path parameter extractor that supports destructuring [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/extract/struct.Path.html)
54-
- `Query`: simplified query-string extractor that can also collect multi-value items [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/extract/struct.Query.html)
55-
- `RequestSignature`: wraps an extractor and calculates a request signature alongside [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/extract/struct.RequestSignature.html)
56-
- `BodyLimit`: wraps a body extractor and prevents DoS attacks by limiting payload size [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/extract/struct.BodyLimit.html)
57-
- `Bytes`: simplified Bytes extractor with const-generic limits [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/extract/struct.Bytes.html)
58-
- `UrlEncodedForm`: URL-encoded form extractor with const-generic payload size limit [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/extract/struct.UrlEncodedForm.html)
59-
- `Host`: Host information taken from either URL or Host header [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/extract/struct.Host.html)
52+
- `Json`: simplified JSON extractor with const-generic payload limits [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/extract/struct.Json.html)
53+
- `Path`: simplified path parameter extractor that supports destructuring [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/extract/struct.Path.html)
54+
- `Query`: simplified query-string extractor that can also collect multi-value items [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/extract/struct.Query.html)
55+
- `RequestSignature`: wraps an extractor and calculates a request signature alongside [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/extract/struct.RequestSignature.html)
56+
- `BodyLimit`: wraps a body extractor and prevents DoS attacks by limiting payload size [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/extract/struct.BodyLimit.html)
57+
- `Bytes`: simplified Bytes extractor with const-generic limits [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/extract/struct.Bytes.html)
58+
- `UrlEncodedForm`: URL-encoded form extractor with const-generic payload size limit [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/extract/struct.UrlEncodedForm.html)
59+
- `Host`: Host information taken from either URL or Host header [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/extract/struct.Host.html)
6060

6161
### Macros
6262

63-
- `FromRequest`: Derive macro to implement `FromRequest` on an aggregate struct of other extractors [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/derive.FromRequest.html)
63+
- `FromRequest`: Derive macro to implement `FromRequest` on an aggregate struct of other extractors [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/derive.FromRequest.html)
6464

6565
### Headers
6666

67-
- `CacheControl`: Cache-Control typed header with support for modern directives [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/header/struct.CacheControl.html)
68-
- `ClearSiteData`: Clear-Site-Data typed header [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/header/struct.ClearSiteData.html)
69-
- `ContentLength`: Content-Length typed header [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/header/struct.ContentLength.html)
70-
- `Forwarded`: Proxy and original client info [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/header/struct.Forwarded.html)
71-
- `StrictTransportSecurity`: Strict-Transport-Security (HSTS) configuration [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/header/struct.StrictTransportSecurity.html)
67+
- `CacheControl`: Cache-Control typed header with support for modern directives [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/header/struct.CacheControl.html)
68+
- `ClearSiteData`: Clear-Site-Data typed header [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/header/struct.ClearSiteData.html)
69+
- `ContentLength`: Content-Length typed header [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/header/struct.ContentLength.html)
70+
- `Forwarded`: Proxy and original client info [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/header/struct.Forwarded.html)
71+
- `StrictTransportSecurity`: Strict-Transport-Security (HSTS) configuration [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/header/struct.StrictTransportSecurity.html)
7272

7373
### Body Types
7474

75-
- `channel`: a simple channel-like body type with a sender side that can be used from another thread [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/body/fn.channel.html)
76-
- `writer`: a simple `AsyncWrite` body type [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/body/fn.writer.html)
75+
- `channel`: a simple channel-like body type with a sender side that can be used from another thread [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/body/fn.channel.html)
76+
- `writer`: a simple `AsyncWrite` body type [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/body/fn.writer.html)
7777

7878
### Services
7979

8080
- `Redirect`: (graduated 🎉) simple redirects [(docs)](https://docs.rs/actix-web/4/actix_web/web/struct.Redirect.html)
81-
- `spa`: Easy Single-page Application (SPA) service [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/web/fn.spa.html)
81+
- `spa`: Easy Single-page Application (SPA) service [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/web/fn.spa.html)
8282

8383
### Route Guards
8484

8585
- `Acceptable`: (graduated 🎉) verifies that an `Accept` header is present and it contains a compatible MIME type [(docs)](https://docs.rs/actix-web/4/actix_web/guard/struct.Acceptable.html)
8686

8787
### Test Utilities
8888

89-
- `test_request`: construct `TestRequest` using an HTTP-like DSL [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/test/macro.test_request.html)
90-
- `assert_response_matches`: quickly write tests that check various parts of a `ServiceResponse` [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/test/macro.assert_response_matches.html)
89+
- `test_request`: construct `TestRequest` using an HTTP-like DSL [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/test/macro.test_request.html)
90+
- `assert_response_matches`: quickly write tests that check various parts of a `ServiceResponse` [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/test/macro.assert_response_matches.html)
9191

9292
### Other Utilities
9393

94-
- `fork_request_payload`: effectively clone a request payload [(docs)](https://docs.rs/actix-web-lab/0.24.2/actix_web_lab/util/fn.fork_request_payload.html)
94+
- `fork_request_payload`: effectively clone a request payload [(docs)](https://docs.rs/actix-web-lab/0.24.3/actix_web_lab/util/fn.fork_request_payload.html)
9595

9696
## Things To Know About This Crate
9797

0 commit comments

Comments
 (0)