This repository has been archived by the owner on Jan 28, 2022. It is now read-only.
Changelog
- Add
CheckDecorator
(accessible fromEnrouteDecorator.check(...): CheckDecorator
attribute) allowing to set check functions with the(request: Request) -> bool
prototype to the service handling functions. - Add support for more
Content-Type
values. Currently:application/json
,application/x-www-form-encoded
,avro/binary
,text/plain
andapplication/octet-stream
. - Remove url params and query params injection from the
RestRequest.content(..)
method. - Add
Request.params(...)
method allowing to access to the request's params. - Add
Request.has_content: bool
andRequest.has_params: bool
to check for the existence ofcontent
andparams
respectively. - Add
InMemoryRequest
class that allows to create requests for testing or calling service handling functions directly.