Search for headers

  1. Search 7.x for headers
  2. Search 9.5.x for headers
  3. Search 10.3.x for headers
  4. Search 11.x for headers
  5. Search main for headers
  6. Other projects
Title Object type File name Summary
BasicAuthTestTrait::getBasicAuthHeaders function core/modules/basic_auth/tests/src/Traits/BasicAuthTestTrait.php Returns HTTP headers that can be used for basic authentication in Curl.
BasicAuthTestTrait::getBasicAuthHeaders function core/modules/basic_auth/src/Tests/BasicAuthTestTrait.php Returns HTTP headers that can be used for basic authentication in Curl.
BigPipeTest::$dumpHeaders property core/modules/big_pipe/tests/src/Functional/BigPipeTest.php
BigPipeTest::assertBigPipeResponseHeadersPresent function core/modules/big_pipe/tests/src/Functional/BigPipeTest.php
BigPipeTestSubscriber::onRespondSetBigPipeDebugPlaceholderHeaders function core/modules/big_pipe/tests/modules/big_pipe_test/src/EventSubscriber/BigPipeTestSubscriber.php Exposes all BigPipe placeholders (JS and no-JS) via headers for testing.
BrowserHtmlDebugTrait::formatHtmlOutputHeaders function core/tests/Drupal/Tests/BrowserHtmlDebugTrait.php Formats HTTP headers as string for HTML output logging.
BrowserHtmlDebugTrait::getHtmlOutputHeaders function core/tests/Drupal/Tests/BrowserHtmlDebugTrait.php Returns headers in HTML output format.
BrowserTestBase::drupalGetHeaders function core/tests/Drupal/Tests/BrowserTestBase.php Returns all response headers.
BrowserTestBaseLegacyTest::testDrupalGetHeaders function core/tests/Drupal/FunctionalTests/BrowserTestBaseLegacyTest.php Test ::drupalGetHeaders().
BrowserTestBaseTest::testDeprecationHeaders function core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php Tests that deprecation headers do not get duplicated.
CacheTest::testHeaderStorage function core/modules/views/tests/src/Kernel/Plugin/CacheTest.php Tests css/js storage and restoring mechanism.
cache_context.headers service core/core.services.yml Drupal\Core\Cache\Context\HeadersCacheContext
DynamicPageCacheIntegrationTest::$dumpHeaders property core/modules/dynamic_page_cache/tests/src/Functional/DynamicPageCacheIntegrationTest.php
EarlyRenderingControllerTest::$dumpHeaders property core/modules/system/tests/src/Functional/Common/EarlyRenderingControllerTest.php
EntityResource::addLinkHeaders function core/modules/rest/src/Plugin/rest/resource/EntityResource.php Adds link headers to a response.
FileUploadResourceTestBase::testPostFileUploadInvalidHeaders function core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php Tests using the file upload POST route with invalid headers.
FileUploadTest::testPostFileUploadInvalidHeaders function core/modules/jsonapi/tests/src/Functional/FileUploadTest.php Tests using the file upload POST route with invalid headers.
file_get_content_headers function core/modules/file/file.module Examines a file entity and returns appropriate content headers for download.
FinishResponseSubscriber::$debugCacheabilityHeaders property core/lib/Drupal/Core/EventSubscriber/FinishResponseSubscriber.php Whether to send cacheability headers for debugging purposes.
FrontPageTest::$dumpHeaders property core/modules/node/tests/src/Functional/Views/FrontPageTest.php
HeadersCacheContext class core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php Defines the HeadersCacheContext service, for "per header" caching.
HeadersCacheContext.php file core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php
HeadersCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php Gets the cacheability metadata for the context based on the parameter value.
HeadersCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php Returns the string representation of the cache context.
HeadersCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php Returns the label of the cache context.
HeadersCacheContextTest class core/tests/Drupal/Tests/Core/Cache/Context/HeadersCacheContextTest.php @coversDefaultClass \Drupal\Core\Cache\Context\HeadersCacheContext[[api-linebreak]]
@group Cache
HeadersCacheContextTest.php file core/tests/Drupal/Tests/Core/Cache/Context/HeadersCacheContextTest.php
HeadersCacheContextTest::providerTestGetContext function core/tests/Drupal/Tests/Core/Cache/Context/HeadersCacheContextTest.php Provides a list of headers and expected cache contexts.
HeadersCacheContextTest::testGetContext function core/tests/Drupal/Tests/Core/Cache/Context/HeadersCacheContextTest.php @covers ::getContext[[api-linebreak]]
HtmlResponseAttachmentsProcessor::setHeaders function core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php Sets headers on a response object.
HtmlResponseAttachmentsTest::assertTeapotHeaders function core/modules/system/tests/src/Functional/Render/HtmlResponseAttachmentsTest.php Helper function to make assertions about added HTTP headers.
HtmlToTextTest::testHeaderSeparation function core/modules/system/tests/src/Functional/Mail/HtmlToTextTest.php Test that headers are properly separated from surrounding text.
ImageFieldDisplayTest::$dumpHeaders property core/modules/image/tests/src/Functional/ImageFieldDisplayTest.php
PageCacheTagsIntegrationTest::$dumpHeaders property core/modules/page_cache/tests/src/Functional/PageCacheTagsIntegrationTest.php
PageCacheTagsTestBase::$dumpHeaders property core/modules/system/src/Tests/Cache/PageCacheTagsTestBase.php Always enable header dumping in page cache tags tests, this aids debugging.
PageCacheTagsTestBase::$dumpHeaders property core/modules/system/tests/src/Functional/Cache/PageCacheTagsTestBase.php Always enable header dumping in page cache tags tests, this aids debugging.
PageCacheTest::$dumpHeaders property core/modules/page_cache/tests/src/Functional/PageCacheTest.php
PageCacheTest::getHeaders function core/modules/page_cache/tests/src/Functional/PageCacheTest.php Retrieves only the headers for an absolute path.
PageCacheTest::testPageCacheTagsIndependentFromCacheabilityHeaders function core/modules/page_cache/tests/src/Functional/PageCacheTest.php Test that the page cache doesn't depend on cacheability headers.
RenderAttachedTestController::teapotHeaderStatus function core/modules/system/tests/modules/render_attached_test/src/Controller/RenderAttachedTestController.php Test special header and status code rendering.
ResponsiveImageFieldDisplayTest::$dumpHeaders property core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php
RESTTestBase::drupalGetHeaders function core/modules/rest/src/Tests/RESTTestBase.php Gets the HTTP response headers of the requested page.
ReverseProxyMiddlewareTest::trustedHeadersAreSet function core/tests/Drupal/Tests/Core/StackMiddleware/ReverseProxyMiddlewareTest.php Tests that trusted headers are set correctly.
SearchPageCacheTagsTest::$dumpHeaders property core/modules/search/tests/src/Functional/SearchPageCacheTagsTest.php
SessionTest::$dumpHeaders property core/modules/system/tests/src/Functional/Session/SessionTest.php
TableTest::testThemeTableNoStickyHeaders function core/tests/Drupal/KernelTests/Core/Render/Element/TableTest.php If $sticky is FALSE, no tableheader.js should be included.
TableTest::testThemeTableNotResponsiveHeaders function core/tests/Drupal/KernelTests/Core/Render/Element/TableTest.php Tests that the 'responsive-table' class is not applied without headers.
TableTest::testThemeTableStickyHeaders function core/tests/Drupal/KernelTests/Core/Render/Element/TableTest.php Tableheader.js provides 'sticky' table headers, and is included by default.
UpdateScriptTest::$dumpHeaders property core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php
WebDriverTestBase::getHtmlOutputHeaders function core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php Returns headers in HTML output format.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.