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

Issue 2157 - Add support for text plain content type #2165

Conversation

@ilmaruk
Copy link
Contributor

commented Jun 28, 2019

Since the implementations of Encode and Decode for http.textHtml* and http.textPlain* would have been the very same, I opted for introducing a single http.textEncoder and http.textDecoder.

It should be easy enough to split them in the future, if needed.

I also took the chance of adding some tests around the code I modified.

@raphael

This comment has been minimized.

Copy link
Member

commented Jul 1, 2019

Thank you for the great PR, love the additional tests! Do you think you could backport this to v2 as well? Simply cherry-pick the merge commit into a branch created off of v2, thank you!.

@raphael raphael merged commit 2acf09c into goadesign:v3 Jul 1, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@ilmaruk

This comment has been minimized.

Copy link
Contributor Author

commented Jul 2, 2019

ilmaruk added a commit to ilmaruk/goa that referenced this pull request Jul 2, 2019
Issue 2157 - Add support for text plain content type (goadesign#2165)
* Added textPlainEncoder and textPlainDecoder

* Merged textPlain and textHTML encoder and decoder into single one.

* Added TestResponseDecoder.

* Added TestResponseEncoder.
raphael added a commit that referenced this pull request Jul 3, 2019
Issue 2157 - Add support for text plain content type (#2165) (#2173)
* Added textPlainEncoder and textPlainDecoder

* Merged textPlain and textHTML encoder and decoder into single one.

* Added TestResponseDecoder.

* Added TestResponseEncoder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.