Skip to content

Added protocol.Result and reworked Event.SetData/Event.Data

Pre-release
Pre-release
Compare
Choose a tag to compare
@slinkydeveloper slinkydeveloper released this 30 Mar 18:31
6dc020a

This release includes two new important changes:

  • Adding protocol.Result to Send and Request client interface (#425): Now you can use cloudevents.IsACK(result)/cloudevents.isNACK to test the result of Client.Send() and Client.Request()
  • Reworking datacodec package (#428): Now in v0.3 and v1.0 the Data field is consistent and Event.SetData()/Event.Data() and datacodec now are decoupled from base64 encoding/decoding

Also included two crucial fixes:

  • Fix a race condition in the distributed tracing unit tests (#420)
  • Fixed ResponseWriter. Now it really writes the content-length, only when possible (best effort) (#424)