add support for custom async iterable objects sysid#43
- replace
asyncio.sleep()
withanyio.sleep
- introduced scriv for changelog management
- fix: py.typed was missing in PyPi distribution
- allow user to set cache-control header for fan-out use-case: Ref: https://www.fastly.com/blog/server-sent-events-fastly
- drop support for python 3.6 and 3.7
- removed unused private attribute
_loop
from classEventSourceResponse
- updated example in README.md
- fix: use starlette's code to set proper content-type and charset
- fix: update examples
- base EventSourceResponse on latest starlette StreamingResponse (0.17.1) and use anyio
- breaking change:
response.wait()
andresponse.stop_streaming()
removed
- add sse comment support
- minimum required python version relaxed to python 3.6
- using module-based logger instead of uvicorn logger
- refactoring: Github Actions introduced into build pipeline
- fix: correct shutdown signal handling in case of an endpoint which only yields sporadic messages
- updated example with proper error handling
- In case uvicorn is used: monkeypatch uvicorn signal-handler, in order to gracefully shutdown long-running handlers/generators.