You are here

public function Http::setRequestHeaders in Migrate Plus 8.5

Same name and namespace in other branches
  1. 8 src/Plugin/migrate_plus/data_fetcher/Http.php \Drupal\migrate_plus\Plugin\migrate_plus\data_fetcher\Http::setRequestHeaders()
  2. 8.2 src/Plugin/migrate_plus/data_fetcher/Http.php \Drupal\migrate_plus\Plugin\migrate_plus\data_fetcher\Http::setRequestHeaders()
  3. 8.3 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

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

Overrides DataFetcherPluginInterface::setRequestHeaders

1 call to Http::setRequestHeaders()
Http::__construct in src/Plugin/migrate_plus/data_fetcher/Http.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

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

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;
}