public function Http::setRequestHeaders in Migrate Plus 8
Same name and namespace in other branches
- 8.5 src/Plugin/migrate_plus/data_fetcher/Http.php \Drupal\migrate_plus\Plugin\migrate_plus\data_fetcher\Http::setRequestHeaders()
- 8.2 src/Plugin/migrate_plus/data_fetcher/Http.php \Drupal\migrate_plus\Plugin\migrate_plus\data_fetcher\Http::setRequestHeaders()
- 8.3 src/Plugin/migrate_plus/data_fetcher/Http.php \Drupal\migrate_plus\Plugin\migrate_plus\data_fetcher\Http::setRequestHeaders()
- 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 54 - Contains Drupal\migrate_plus\Plugin\migrate_plus\data_fetcher\Http.
Class
- Http
- Retrieve data over an HTTP connection for migration.
Namespace
Drupal\migrate_plus\Plugin\migrate_plus\data_fetcherCode
public function setRequestHeaders(array $headers) {
$this->headers = $headers;
}