0

I'm using Refit and it works fine as most of my server endpoints return JSON. However, I have a couple of endpoints that return XML.

Is it possible to change Refit's ContentSerializer at runtime for specific endpoints?

Ivan Debono
  • 457
  • 3
  • 14
  • The Content-Type HTTP header will indicate the type. So you can check the header and then determine which serialize method to use. – jdweng Jul 05 '23 at 03:10

0 Answers0