func (r *Response) Close() error {
	if r.closed {
		return r.closeErr
	}
	r.closed = true
	if r.closeStream != nil {
		close(r.closeStream)
	}
	r.closeErr = r.Raw.Body.Close()
	if r.closeStream != nil {
		<-r.streamClosed  
	}
	return r.closeErr
}
Close closes the body of the response.
package client
import (
	"bufio"
	"bytes"
	"encoding/json"
	"errors"
	"fmt"
	"gopkg.in/sensorbee/sensorbee.v0/server/response"
	"io"
	"io/ioutil"
	"mime"
	"net/http"
	"strconv"
	"strings"
)
type Response struct {
	Raw *http.Response
	closeStream  chan struct{}
	streamClosed chan struct{}
	streamErr    error
	closed   bool
	closeErr error
	bodyCache []byte
	errCache  *response.Error
	readErr   error
	mimeType     string
	mimeParams   map[string]string
	mimeParseErr error
}