Jaymon / endpoints

Lightweight REST api backend framework that automatically maps urls to python modules and classes
MIT License
29 stars 10 forks source link

Natively support orjson? #132

Open Jaymon opened 5 months ago

Jaymon commented 5 months ago

https://pypi.org/project/orjson/

It could be installed using endpoints[orjson] or something like that and then orjson will be used if available

Jaymon commented 5 months ago

I'd need to refactor interface.base.BaseApplication.get_response_body to call multiple sub-methods:

That would make it easier for child classes to override how the body is returned and make it easier to hook in orjson