Skip to content

Add ability to deserialize other Content-Types #11194

@conniey

Description

@conniey

Currently, if the Content-Type is not application/xml, it will assume the Content-Type is JSON. The Service Bus APIs return "application/atom+xml", which is being incorrectly deserialized as JSON.

SerializerEncoding: https://azuresdkdocs.blob.core.windows.net/$web/java/azure-core/1.3.0-beta.1/com/azure/core/util/serializer/SerializerEncoding.html#fromHeaders-com.azure.core.http.HttpHeaders-

It would be nice to add a way to associate other content types with serializers and treat the HTTP requests and responses according to which ones can be handled.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions