Search for headers

  1. Search 7.x for headers
  2. Search 8.9.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.
BigPipeTest::assertBigPipeResponseHeadersPresent function core/modules/big_pipe/tests/src/Functional/BigPipeTest.php @internal
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.
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
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.
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 Tests that headers are properly separated from surrounding text.
PageCacheTest::getHeaders function core/modules/hal/tests/src/Functional/page_cache/PageCacheTest.php Retrieves only the headers for an absolute path.
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 Tests that the page cache doesn't depend on cacheability headers.
PhpMail::MAILBOX_LIST_HEADERS constant core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php A list of headers that can contain multiple email addresses.
RenderAttachedTestController::teapotHeaderStatus function core/modules/system/tests/modules/render_attached_test/src/Controller/RenderAttachedTestController.php Tests special header and status code rendering.
ReverseProxyMiddlewareTest::trustedHeadersAreSet function core/tests/Drupal/Tests/Core/StackMiddleware/ReverseProxyMiddlewareTest.php Tests that trusted headers are set correctly.
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.
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.