You are here

public function HttpFetcherResult::__construct in Feeds 8.3

Constructs an HttpFetcherResult object.

Parameters

string $file_path: The path to the result file.

array $headers: An array of HTTP headers.

Overrides FetcherResult::__construct

File

src/Result/HttpFetcherResult.php, line 25

Class

HttpFetcherResult
The default fetcher result object.

Namespace

Drupal\feeds\Result

Code

public function __construct($file_path, array $headers) {
  parent::__construct($file_path);
  $this->headers = array_change_key_case($headers);
}