HttpHeaderProcessorInterface.php 682 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\GraphQl\Controller;
  8. /**
  9. * Use this interface to implement a processor for each entry of a header in an HTTP GraphQL request.
  10. */
  11. interface HttpHeaderProcessorInterface
  12. {
  13. /**
  14. * Perform processing on a list of headers, iteratively.
  15. *
  16. * This method should be called even if a header entry is not present on a request
  17. * to enforce required headers like "application/json"
  18. *
  19. * @param string $headerValue
  20. * @return void
  21. */
  22. public function processHeaderValue(string $headerValue) : void;
  23. }