Content Type Negotiation
See Http documentation on content type negotiation for the general concept
Usage with Azure.Core operations
Content negotiation in Azure.Core
is done in the same way as in Http operations. This means each operation must have the @sharedRoute
decorator added as well as an Accept
header in the operation parameters (TParams
).
For example, consider an api that lets you download the avatar of the User
resource as a png
or jpeg
depending on which Accept header is sent.