title: Close HTTP Request in NativeScript
body: <p>I would like to close the connection after recivinig Data, How Can I do that?</p>
  <pre><code>    Http.request( httpConfig )
      .then(
          answer =&gt; {
              // do something with answer
              // close the request connection
          }, 
          e =&gt; {} 
      )
      .catch( e =&gt; {} )
  </code></pre>
  <p>I get some data from an api, but if I try to do same thing again the api refuses to provide data!
  in fact the api still makes communication successfully, but due to having an active connection does not provide data for second connection. and returns some unwanted data!</p>
  <p>in <code>answer.headers</code> I saw it indicates:</p>
  <pre><code>&quot;Connection&quot;: &quot;keep-alive&quot;,
  </code></pre>