Skip to content

Instantly share code, notes, and snippets.

@jzxhuang
Last active April 4, 2019 07:39
Show Gist options
  • Save jzxhuang/95e0372b11b48421b2be203cd2683f01 to your computer and use it in GitHub Desktop.
Save jzxhuang/95e0372b11b48421b2be203cd2683f01 to your computer and use it in GitHub Desktop.
An expectString function with a more detailed response on the sucess case
expectStringDetailed : (Result Error ( Metadata, String ) -> msg) -> Expect msg
expectStringDetailed msg =
Http.expectStringResponse msg convertResponseString
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment