PerfectlySoft / Perfect-HTTP

Base HTTP Support for Perfect.
https://www.perfect.org
Apache License 2.0
31 stars 34 forks source link

Allow a custom JSONEncoder in HTTPResponse Body set method #31

Closed joseph-elmallah closed 5 years ago

joseph-elmallah commented 5 years ago

When calling set body with an Encodable type, it is handy to be able to specify the JSONEncoder instead of using always the default one. In cases date formatting, data encoding or floats need custom formatting.

kjessup commented 5 years ago

Thank you! Tagged as 3.2.5.