Skip to content

Version 3.6.2

Latest
Compare
Choose a tag to compare
@tarsil tarsil released this 09 Jan 13:08
· 4 commits to main since this release
b292478

Added

  • name parameter to StaticFiles config allowing to reverse lookup internally.
  • Support for Python 3.13
  • Support for redirect_slashes in the Include.
  • status_code to ResponseContainer to be parameter detectable.

Changed

  • Cleanup Response.
  • Move transform method to lilya but provide speedup in a mixin.
  • Esmerald Response behaves like make_response in lilya with a plain Response.
  • Special handle None (nothing is returned) in Response. It shouldn't map to null so not all handlers have to return a value.

Fixed

  • data and payload special kwargs are now allowed when a not-bodyless method is available for the handler. They default to None.
  • bytes won't be encoded as json when returned from a handler. This would unexpectly lead to a base64 encoding.
  • SessionConfig has a unneccessarily heavily restricted secret_key parameter.
  • Gracefully handle situations where cookies are None in get_cookies.
  • Fix validation of parameters requiring a body.