* defaults for handler parameters are type-checked * defaults are only allowed for handler parameters which do not get values from path/query string/body * handler parameter types can wrapped with Annotated
* added more typing info * binding tests/examples using marshmallow and pydantic
0.6.0
Features
* configurable compression level. Lowered default level from 6 to 2. * route paths must always start with / * made route options again accessible in before_request hook (broken in 0.3.0)
Refactoring
* pass dataclass object to json serializer, do not convert it to dict too early. Possible performance gain with serializers which support native dataclass serialization.
0.5.0
Features
* added compression support for responses. By default enabled for application/json * Accept header negotiation now uses quality value too (type with q=0 is ignored) * fixed handling of Body and Query annotated parameters when PEP-563 is enabled
Refactoring
* renamed configuration parameter max_content_length to max_request_content_length
0.4.0
Features
* shortcut route decorators for HTTP methods DELETE, GET, PATCH, POST, PUT