title: How to know the response data type of API using requests
body: <p>I have one simple question, is there a easy way to know the type of API's response?</p>
  <p>Fox example:</p>
  <p>Using <code>requests</code> post method to send api requests, some apis will return data format as .xml type or .json type,</p>
  <p>how can i know the response type so i can choose not to convert to .json use <code>json()</code> when response type is .xml?</p>