Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

v0.3.2

Latest
Compare
Choose a tag to compare
@garciparedes garciparedes released this 27 Dec 14:33
· 1 commit to main since this release

Changelog

  • Add CheckDecorator (accessible from EnrouteDecorator.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 and application/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 and Request.has_params: bool to check for the existence of content and params respectively.
  • Add InMemoryRequest class that allows to create requests for testing or calling service handling functions directly.