Closed jonnyarnold closed 6 years ago
Thanks for the pull request! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
I'd like to point out that this expectation exists in lukewestby/http-extra
and is also implicitly used in lukewestby/elm-http-builder
.
(Just presenting these as factual information relevant to the PR, not expressing an opinion on whether or not this makes sense to have in core)
@zwilias I didn't know about these packages - thanks :)
Based on #12, it's not obvious how to deal with empty response bodies.
I've added a new expectation to the Expect zoo which can be used to ignore a request body. This was do-able with
expectString
, but wasn't obvious and didn't have a representative type signature.While doing this, I had a few questions:
Expect
sentence pattern: I thought about calling itexpectEmptyBody
, but it doesn't actually do a check - it just ignores it. Any suggestions?expect
be a parameter toget
andpost
? (Obviously this is a breaking change, but I wonder whether expecting JSON on all responses is too opinionated.)Thanks for reading!