Vapor: 4.42.0 Release

Release date:
April 7, 2021
Previous version:
4.41.11 (released April 7, 2021)
Magnitude:
15 Diff Delta
Contributors:
1 total committer
Data confidence:
Commits:

Top Contributors in 4.42.0

wacumov

Directory Browser for 4.42.0

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

This patch was authored by @wacumov and released by @0xTim.

Adds a way to manually upgrade an incoming request to WebSocket (https://github.com/vapor/vapor/issues/2235).

app.get("socket") { req in
    // Check things from the request.
    return req.webSocket { req, ws in
        // Handle WebSocket lifecycle here
    }
}