title: How to use the $http using vuejs / composition-api?
body: <p>I'm trying to refactor a few components using composition api. There's a function that needs to send a request.</p>
  
  <p>Since there's no access to <code>this</code> on <code>setup(props, context)</code> I thought I can use this <code>context</code> argument like it was when I was <strong>emitting</strong> an event to parent (<code>context.emit()</code>) but it seams to not be the case.</p>
  
  <p>There's an error when using <strong>context</strong>:</p>
  
  <pre><code>Error in v-on handler: "TypeError: context.http is undefined""
  </code></pre>
  
  <p>There's an error when using <strong>this</strong>:</p>
  
  <pre><code>Error in v-on handler: "TypeError: _this is undefined"
  </code></pre>
  
  <p>Here's a snippet of something I'm trying to achieve:</p>
  
  <pre><code>context.http.post('/url'), { data })
    .then(({ data }) =&gt; {
      console.log(data)
    });
  </code></pre>