You are here

public function Http::setRequestHeaders in Migrate Plus 8.3

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

Set the client headers.

Parameters

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

Overrides DataFetcherPluginInterface::setRequestHeaders

File

src/Plugin/migrate_plus/data_fetcher/Http.php, line 65

Class

Http
Retrieve data over an HTTP connection for migration.

Namespace

Drupal\migrate_plus\Plugin\migrate_plus\data_fetcher

Code

public function setRequestHeaders(array $headers) {
  $this->headers = $headers;
}