http4k-multipart : [Fix] Further fixes to deletion of temporary files. Should fix memory leak. @H/T@oharaandrew314
http4k-server-jetty11 : [Fix] Received binary Websocket frames will no longer have their content coerced to text. @H/T@oharaandrew314
http4k-* : [Breaking] Make WsMessage mode explicit. @H/T@oharaandrew314
Migration Guide
Previously, a WsMessage was sent in either TEXT or BINARY mode based on whether the Body was a MemoryBody or StreamBody, respectively.
:warning: Warning: If you were using the primary constructor of WsMessage, you will need to explicitly provide a WsMessage.Mode to resolve the new compiler errors.
val textMessage = WsMessage(MemoryBody("hi"), WsMessage.Mode.Text)
val binaryMessage = WsMessage(StreamBody(imageStream), WsMessage.Mode.Binary)
:bulb: Note: If you were using the secondary WsMessage constructors, no changes are necessary.
val textMessage = WsMessage("hi") // Text like before
val binaryMessage = WsMessage(imageStream) // Binary like before
:bulb: Note: You now have full control over how content is sent.
// have a very long string? Stream it!
val lotsOfText = WsMessage(StreamBody(imageStream), WsMessage.Mode.Text)
// have your binary buffered already? Send it as is!
val bufferedBinary = WsMessage(MemoryBody(imageBytes), WsMessage.Mode.Binary)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps org.http4k:http4k-bom from 5.29.0.0 to 5.30.0.0.
Release notes
Sourced from org.http4k:http4k-bom's releases.
Changelog
Sourced from org.http4k:http4k-bom's changelog.
Commits
b1834f8
Release 5.30.0.04dfd9e1
changelog5d64fd0
Upgrade versions8d6ee37
WsMessage mode migration guide (#1170)c7148af
Add common events impleemntations900a547
downgrad kondor2667a28
Upgradesafa04b9
Bump actions/setup-python from 5.1.1 to 5.2.0 (#1168)ca0d325
CHANGELOG55606d6
Make WsMessage mode explicit, and fix many binary frame errors (#1165)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show