Skip to content

v0.0.6

Choose a tag to compare

@Kludex Kludex released this 08 Jun 17:51
· 74 commits to main since this release
4250057

What's new

  • Event is now public (#15). The return type of Connection.next_event() is exported from the package - from zttp import Event - instead of only living in the extension stub. It's the union Request | Response | Data | EndOfMessage | NeedData | ConnectionClosed.

Breaking

  • The connection-closed sentinel is renamed for a uniform model with NEED_DATA: the singleton is now CONNECTION_CLOSED (compare with is), and ConnectionClosed is its type (for annotations / the Event union). Update event is zttp.ConnectionClosed to event is zttp.CONNECTION_CLOSED. Both sentinels - NEED_DATA/NeedData and CONNECTION_CLOSED/ConnectionClosed - now follow the same shape.

Full changelog: v0.0.5...v0.0.6