v0.0.6
What's new
Eventis now public (#15). The return type ofConnection.next_event()is exported from the package -from zttp import Event- instead of only living in the extension stub. It's the unionRequest | Response | Data | EndOfMessage | NeedData | ConnectionClosed.
Breaking
- The connection-closed sentinel is renamed for a uniform model with
NEED_DATA: the singleton is nowCONNECTION_CLOSED(compare withis), andConnectionClosedis its type (for annotations / theEventunion). Updateevent is zttp.ConnectionClosedtoevent is zttp.CONNECTION_CLOSED. Both sentinels -NEED_DATA/NeedDataandCONNECTION_CLOSED/ConnectionClosed- now follow the same shape.
Full changelog: v0.0.5...v0.0.6