An HTTP server can use content negotiation to respond to different clients. Modern clients typically expect a JSON response. At times, a different format is required, such as XML for older clients or binary for newer ones. The process used to manage that challenge, as well as others like coping with numerous languages and even compressing HTTP requests, is known as content negotiation.
In this article, we'll walk through the process of creating a small Java MicroProfile application as we explain how content negotiation works.
from DZone.com Feed https://ift.tt/2Z8QKSh
No comments:
Post a Comment