[DAEMON-66] appcd-http: Format responses based on the Accept header
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | Trivial |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | appcd-http |
| Labels | n/a |
| Reporter | Chris Barber |
| Assignee | Chris Barber |
| Created | 2017-03-22T18:50:23.000+0000 |
| Updated | 2020-02-13T07:23:42.000+0000 |
Description
The daemon will general return JSON formatted responses where the response is "data". When the response is a message or error, it's returned as a blob of text.
It would be nice to pass along the Accept header so that handlers can coerce the response into a content type that the client prefers. Likewise with text responses and errors.
No comments