('click', () => {
      http.get('https://api.camijs.com/posts/1').toJson()
        .then(data => {
          console.log('GET:', data);
          resultDiv.textContent = 'GET: ' + JSON.stringify(data);
        })
        .catch(error => {
          console.error('GET Error:', error);
          resultDiv.textContent = 'GET Error: ' + error;
        });
    });

    document.getElementById('post').addEventListener('click', () => {
      http.post('https://api.camijs.com/posts', { title: 'foo', body: 'bar', u