title: How to use the basic authentication in NestJS?
body: <p>So I'm trying to do an API call, and I have to use basic authentication.</p>
  <p>The codes are like these :</p>
  <pre><code>const headersRequest = {
      'Content-Type'  : 'application/json',
      'Authorization' : `Basic ${this.authToken}`
  }
  
  let response = this.httpService.get(url, {headers: headersRequest});
  </code></pre>
  <p>The question is the above <code>get()</code> function call correct?</p>
  <p>Because the output of :</p>
  <pre><code>console.log(response)
  </code></pre>
  <p>is :</p>
  <pre><code>Observable { _isScalar: false, _subscribe: [Function (anonymous)] }
  </code></pre>
  <p>and not the response object which I wanted.</p>
  <p>I have tried to explore <code>HttpService get</code>, but couldn't find any detailed documentation related to this basic authentication.</p>
  <p>PS: I'm a PHP developer and just learned NestJS in the last couple of days.</p>