func analyzeResponse(resp *http.Response) (Response, error) {
	content, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		return nil, errors.Annotate(err, ErrAnalyzingResponse, errorMessages)
	}
	resp.Body.Close()
	return &response{
		httpResp:    resp,
		contentType: resp.Header.Get("Content-Type"),
		content:     content,
	}, nil
}
// analyzeResponse creates a response struct out of the HTTP response.
analyzeResponse creates a response struct out of the HTTP response.
// analyzeResponse creates a response struct out of the HTTP response .
func analyzeResponse(resp *http.Response) (Response, error) {
	content, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		return nil, errors.Annotate(err, ErrAnalyzingResponse, errorMessages)
	}
	resp.Body.Close()
	return &response{
		httpResp:    resp,
		contentType: resp.Header.Get("Content-Type"),
		content:     content,
	}, nil
}
func analyzeResponse ( resp * http . Response ) ( Response , error ) { content , err := ioutil . ReadAll ( resp . Body ) if err != nil { return nil , errors . Annotate ( err , ErrAnalyzingResponse , errorMessages ) } resp . Body . Close ( ) return & response { httpResp : resp , contentType : resp . Header . Get ( " " ) , content : content , } , nil }
analyzeResponse creates a response struct out of the HTTP response.
analyzeResponse creates a response struct out of the HTTP response .