Kitura / KituraKit

Swift client library for using Codable routes with Kitura
Apache License 2.0
59 stars 20 forks source link

Feat: Add custom Encoder and Decoder #38

Closed Andrew-Lees11 closed 5 years ago

Andrew-Lees11 commented 5 years ago

This PR addresses issue #37 Custom Encoders and decoders. It adds a variable encoder and decoder to the KituraKit client. These coders are then used to encode/decode the request as well as set the Content-Type and Accept header.

This maps into the Kitura API for custom encoder and decoder so that you can use a different serialization for sending objects accross codable routes.