title: What exactly does a .net core api return to the browser?
body: <p>So I have this endpoint:</p>
  <pre><code>[HttpGet]
  public async Task&lt;ActionResult&gt; Get()
  {
     var ext = new ApiExtensions();
     List&lt;Record&gt; records = await ext.GetRecords();    
     return Ok(records);
  }
  </code></pre>
  <p>This is the Record object:</p>
  <pre><code>public class Record
  {
      public int Id { get; set; }
      public string Name { get; set; }
      public string CreatedBy { get; set; }
      public DateTime? DateCreated { get; set; }
      public string LastModifiedBy { get; set; }
      public DateTime? LastModifiedDate { get; set; }
  }
  </code></pre>
  <p>Inspecting the results in Fiddler or Postman I get what I expect to see.
  But both of these tools (Fiddler and Postman) give me the ability to &quot;see&quot; the data (body) returned by the api in different formats: text, raw, json, xml, etc. So, what exactly is the api returning to the client? Is it just the &quot;raw&quot; data as displayed in the raw tab? Or does it return the same data in different formats and it is up to the client to use the right one?</p>
  <p>(I'm using .net core 3.1.)</p>
  <p>Thanks.</p>