You are here

public function DataFetcherPluginInterface::setRequestHeaders in Migrate Plus 8

Same name and namespace in other branches
  1. 8.5 src/DataFetcherPluginInterface.php \Drupal\migrate_plus\DataFetcherPluginInterface::setRequestHeaders()
  2. 8.2 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.

1 method overrides DataFetcherPluginInterface::setRequestHeaders()
Http::setRequestHeaders in src/Plugin/migrate_plus/data_fetcher/Http.php
Set the client headers.

File

src/DataFetcherPluginInterface.php, line 26
Contains \Drupal\migrate_plus\DataFetcherPluginInterface.

Class

DataFetcherPluginInterface
Defines an interface for data fetchers.

Namespace

Drupal\migrate_plus

Code

public function setRequestHeaders(array $headers);