Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Added Data encoder and decoder #28

Merged
merged 8 commits into from
Aug 24, 2018
Merged

Conversation

Andrew-Lees11
Copy link
Contributor

@Andrew-Lees11 Andrew-Lees11 commented Jul 16, 2018

This PR adds an encode from data and decode from data to our QueryEncoder and QueryDecoder. This is required so the coders fit our BodyEncoder/Decoder protocol for our custom decoders branch.

Since this encourages users to use the same encoder/decoder for multiple uses we also made them thread safe.

The file String+Extensions is requires and so has been added to extensions. We may want to make TypeAliases in Kitura to avoid code duplication.

Cyclic tests for Data have been added where a codable type is encoded and then decoded back to its original type.

@Andrew-Lees11 Andrew-Lees11 merged commit a8212e7 into master Aug 24, 2018
@ianpartridge ianpartridge deleted the QueryDataCoder branch August 24, 2018 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants