Skip to content

Conversation

shockey
Copy link
Contributor

@shockey shockey commented Sep 16, 2017

Fixes #3654.
CC #3641.

Adds ability to control Accept header.

Introduces the concept of a "blessed" response that dictates the Accept header value.

Logic is as follows:

if responses has a 2xx response code with media types defined
  use first 2xx response's media types as Accept options
else if responses has a default response with media types defined
  use default response's media types as Accept options
else
  use `*/*` as Accept value

Looks like:

messages image 2039238910

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant