public static function InformationHeadersExtendTest::setExtendedHeaders in Auth0 Single Sign On 8.2
Reset and extend telemetry headers.
Parameters
string $name New SDK name.:
string $version New SDK version.:
Return value
3 calls to InformationHeadersExtendTest::setExtendedHeaders()
- InformationHeadersExtendTest::testThatExtendedHeadersAreUsedForAuthenticationApiCalls in vendor/auth0/ auth0-php/ tests/ API/ Helpers/ InformationHeadersExtendTest.php 
- Test that extending the headers works for Management API calls.
- InformationHeadersExtendTest::testThatExtendedHeadersAreUsedForManagementApiCalls in vendor/auth0/ auth0-php/ tests/ API/ Helpers/ InformationHeadersExtendTest.php 
- Test that extending the headers works for Management API calls.
- InformationHeadersExtendTest::testThatExtendedHeadersBuildCorrectly in vendor/auth0/ auth0-php/ tests/ API/ Helpers/ InformationHeadersExtendTest.php 
- Extend existing headers and make sure existing data stays intact.
File
- vendor/auth0/ auth0-php/ tests/ API/ Helpers/ InformationHeadersExtendTest.php, line 101 
Class
- InformationHeadersExtendTest
- Class InformationHeadersExtendTest
Namespace
Auth0\Tests\Api\HelpersCode
public static function setExtendedHeaders($name, $version) {
  $reset_headers = new InformationHeaders();
  $reset_headers
    ->setCorePackage();
  ApiClient::setInfoHeadersData($reset_headers);
  $headers = ApiClient::getInfoHeadersData();
  $new_headers = InformationHeaders::Extend($headers);
  $new_headers
    ->setPackage($name, $version);
  ApiClient::setInfoHeadersData($new_headers);
  return $new_headers;
}