haskell-servant / haskell-servant/servant
Client flexibility between request's Accept and response's Content-Type?
Open
enhancement
servant-client
- Dominant language
- Haskell
- Stars
- 2k
- Forks
- 427
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 5
Description
What is the best way to wrap APIs where Content-Type in the response header does not exactly match Accept in the request header? For example, [Travis API](https://docs.travis-ci.com/api) requires the request header to contain `Accept: application/vnd.travis-ci.2+json`, but returns `Content-Type: application/json;charset=utf-8` in the response header.
Contributor guide
Assessment
This issue has not been assessed yet.