Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

v0.5.0

Compare
Choose a tag to compare
@Bogdanp Bogdanp released this 18 Aug 10:05
· 105 commits to master since this release
4bccf49

Added

  • Support for websockets.
  • Support for returning (status, data, headers) from handlers.
  • handle_parse_error to App class.

Changed

  • ResponseRendererMiddleware now looks up renderers directly off of
    the app object. This means you no longer have to pass them to the
    middleware upon instantiation. This is a breaking change.

    To upgrade, change code that looks like this:

    app = App(
        middleware=[ResponseRendererMiddleware([JSONRenderer()])],
    )

    to:

    app = App(
        middleware=[ResponseRendererMiddleware()],
        renderers=[JSONRenderer()],
    )