public function Http::setRequestHeaders in Migrate Plus 8.4
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 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()
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_fetcherCode
public function setRequestHeaders(array $headers) {
$this->headers = $headers;
}