Releases: ThreeDotsLabs/watermill-http
Releases · ThreeDotsLabs/watermill-http
v2.3.1
v2.3.0
What's Changed
- [watermill-http] Custom HTTP response status by @thejoeejoee in #14
New Contributors
- @thejoeejoee made their first contribution in #14
Full Changelog: v2.2.0...v2.3.0
v2.2.0
Bump watermill
Merge pull request #12 from ThreeDotsLabs/bump-watermill-2 Bump watermill
Bump major version to v2
Merge pull request #9 from ThreeDotsLabs/bump-major Bump major version to v2
Rework SSERouter's StreamAdapter
Previously, GetResponse
took http.ResponseWriter
as an argument. Because of this, the client could attempt to write to the response while the request was already cancelled by the user.
The new approach uses two methods for getting the response.
InitialStreamResponse
used to initialize the stream. You can set HTTP status code and headers at this point.NextStreamResponse
that verifies if the event should be sent (whatValidate
previously did) and returns the response.
Please see the tests for an example how the new adapter works.
Expose Close on SSERouter
Merge pull request #7 from ThreeDotsLabs/sse-router-close Expose Close on SSERouter
Do not panic on a wrong metadata or invalid payload on Subscribe()
v1.1.3 Merge pull request #6 from denniselite/bugfix/do-not-panic-on-invalid…
Add X-Accel-Buffering header to disable proxy buffering
Merge pull request #5 from ThreeDotsLabs/no-proxy-buffering Add X-Accel-Buffering header to disable proxy buffering
SSERouter: Fetch the first response before starting the stream
Merge pull request #4 from ThreeDotsLabs/sse-router-order Fetch the first response before starting the stream