protected function makeHttpRequest($url, $method, $headers, $body = null) {
    $request_headers = array_merge($headers, self::$api_version_header);

    $result = $this->doHttpRequest($url,
                                   $method,
                                   $request_headers,
                                   $body);

    if ($result === false) {
      return false;
    }

    return [
      'status_code' => $result['status_code'],
      'headers' => $result['headers'],
      'body' => $result['body'],
    ];
  }
protected function makeHttpRequest($url, $method, $headers, $body = null) {
    $request_headers = array_merge($headers, self::$api_version_header);

    $result = $this->doHttpRequest($url,
                                   $method,
                                   $request_headers,
                                   $body);

    if ($result === false) {
      return false;
    }

    return [
      'status_code' => $result['status_code'],
      'headers' => $result['headers'],
      'body' => $result['body'],
    ];
  }
protected function makeHttpRequest ( $ url , $ method , $ headers , $ body = null ) { $ request_headers = array_merge ( $ headers , self :: $ api_version_header ) ; $ result = $ this -> doHttpRequest ( $ url , $ method , $ request_headers , $ body ) ; if ( $ result === false ) { return false ; } return [ 'status_code' => $ result [ 'status_code' ] , 'headers' => $ result [ 'headers' ] , 'body' => $ result [ 'body' ] , ] ; }
Make a request to GCS using HttpStreams.

Returns:
headers array
response body
Make a request to GCS using HttpStreams .