class HttpFetcherResult in Feeds 8.3
The default fetcher result object.
Hierarchy
- class \Drupal\feeds\Result\FetcherResult implements FetcherResultInterface
- class \Drupal\feeds\Result\HttpFetcherResult implements HttpFetcherResultInterface
Expanded class hierarchy of HttpFetcherResult
1 file declares its use of HttpFetcherResult
- HttpFetcher.php in src/
Feeds/ Fetcher/ HttpFetcher.php
File
- src/
Result/ HttpFetcherResult.php, line 8
Namespace
Drupal\feeds\ResultView source
class HttpFetcherResult extends FetcherResult implements HttpFetcherResultInterface {
/**
* The HTTP headers.
*
* @var array
*/
protected $headers;
/**
* Constructs an HttpFetcherResult object.
*
* @param string $file_path
* The path to the result file.
* @param array $headers
* An array of HTTP headers.
*/
public function __construct($file_path, array $headers) {
parent::__construct($file_path);
$this->headers = array_change_key_case($headers);
}
/**
* {@inheritdoc}
*/
public function getHeaders() {
return $this->headers;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FetcherResult:: |
protected | property | The filepath of the fetched item. | |
FetcherResult:: |
protected | function | Checks that a file exists and is readable. | |
FetcherResult:: |
public | function |
Returns the path to the file containing the file provided by the fetcher. Overrides FetcherResultInterface:: |
1 |
FetcherResult:: |
public | function |
Returns the file provided by the fetcher as a string. Overrides FetcherResultInterface:: |
1 |
FetcherResult:: |
protected | function | Sanitizes the file in place. | |
FetcherResult:: |
protected | function | Sanitizes the raw content string. | |
HttpFetcherResult:: |
protected | property | The HTTP headers. | |
HttpFetcherResult:: |
public | function |
Returns the headers. Overrides HttpFetcherResultInterface:: |
|
HttpFetcherResult:: |
public | function |
Constructs an HttpFetcherResult object. Overrides FetcherResult:: |