Skip to content

Releases: ThreeDotsLabs/watermill-http

v2.2.0

31 May 09:54
92154bf
Compare
Choose a tag to compare

What's Changed

Add SSEMarshaler by @m110 in #13

Add a way to provide custom marshaler for the SSE endpoints, instead of the default JSON marshaling.

Full Changelog: v2.1.0...v2.2.0

Bump watermill

08 Jun 17:00
84eb18f
Compare
Choose a tag to compare
Merge pull request #12 from ThreeDotsLabs/bump-watermill-2

Bump watermill

Bump major version to v2

05 Aug 12:22
baf6c4b
Compare
Choose a tag to compare
Merge pull request #9 from ThreeDotsLabs/bump-major

Bump major version to v2

Rework SSERouter's StreamAdapter

05 Aug 12:11
a746d0b
Compare
Choose a tag to compare

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.

  1. InitialStreamResponse used to initialize the stream. You can set HTTP status code and headers at this point.
  2. NextStreamResponse that verifies if the event should be sent (what Validate previously did) and returns the response.

Please see the tests for an example how the new adapter works.

Expose Close on SSERouter

22 Jul 09:55
5c856a0
Compare
Choose a tag to compare
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()

10 Nov 21:52
146a1af
Compare
Choose a tag to compare
Merge pull request #6 from denniselite/bugfix/do-not-panic-on-invalid…

…-payload

Do not panic on a wrong metadata or invalid payload on Subscribe()

Add X-Accel-Buffering header to disable proxy buffering

05 Feb 11:57
c73befc
Compare
Choose a tag to compare
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

27 Jan 16:06
dab078f
Compare
Choose a tag to compare
Merge pull request #4 from ThreeDotsLabs/sse-router-order

Fetch the first response before starting the stream

Add SSERouter

10 Jan 10:10
f9529a1
Compare
Choose a tag to compare
Merge pull request #3 from ThreeDotsLabs/sse-handler

Add SSERouter

v1.0.3

16 Nov 21:06
Compare
Choose a tag to compare
update Watermill to v1.0.2