You are here

public function DataFetcherPluginInterface::setRequestHeaders in Migrate Plus 8.2

Same name and namespace in other branches
  1. 8.5 src/DataFetcherPluginInterface.php \Drupal\migrate_plus\DataFetcherPluginInterface::setRequestHeaders()
  2. 8 src/DataFetcherPluginInterface.php \Drupal\migrate_plus\DataFetcherPluginInterface::setRequestHeaders()
  3. 8.3 src/DataFetcherPluginInterface.php \Drupal\migrate_plus\DataFetcherPluginInterface::setRequestHeaders()
  4. 8.4 src/DataFetcherPluginInterface.php \Drupal\migrate_plus\DataFetcherPluginInterface::setRequestHeaders()

Set the client headers.

Parameters

$headers: An array of the headers to set on the HTTP request.

2 methods override DataFetcherPluginInterface::setRequestHeaders()
File::setRequestHeaders in src/Plugin/migrate_plus/data_fetcher/File.php
Set the client headers.
Http::setRequestHeaders in src/Plugin/migrate_plus/data_fetcher/Http.php
Set the client headers.

File

src/DataFetcherPluginInterface.php, line 21

Class

DataFetcherPluginInterface
Defines an interface for data fetchers.

Namespace

Drupal\migrate_plus

Code

public function setRequestHeaders(array $headers);