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

Allow responses to be things other than JSON. #1

Closed
rupertlssmith opened this issue Mar 10, 2020 · 1 comment
Closed

Allow responses to be things other than JSON. #1

rupertlssmith opened this issue Mar 10, 2020 · 1 comment

Comments

@rupertlssmith
Copy link

@rupertlssmith rupertlssmith commented Mar 10, 2020

https://discourse.elm-lang.org/t/xml-endpoints-with-the-sett-elm-aws-core/5293

Ulrar wants to use XML with the EC2 service. Right now a JSON decoder is required, which makes thi awkward.

Change the request implementation to:

type alias Unsigned a =
    { ...
    , decoder : String -> Result String a
    ...
    }

To make decoding more general, and this will allow an XML response to decoded.

@rupertlssmith

This comment has been minimized.

Copy link
Author

@rupertlssmith rupertlssmith commented Mar 10, 2020

Released as version 4.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.