title: dart flutter httpclient : authorization
body: <p>i would like to perform a basic authentication with a simple token; how to perform this in flutter?  which is the best way? </p>
  
  <pre><code>var response = await httpClient.post(url, 
      body: {'name': 'doodle', 'color': 'blue'});
  </code></pre>
  
  <p>is it sufficient to ad an authentication header, for example in this way ? </p>
  
  <pre><code>var response = await httpClient.post(
      url, 
      header:{ 
          'authorization' : 'bearer $token', 
          'content-type':'application/json'
      },
      body :{some body});
  </code></pre>
  
  <p>I'm using a JWT token type</p>