haskell-servant / haskell-servant/servant

Client flexibility between request's Accept and response's Content-Type?

Open
#292 5 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.