Issue Feature Closed

#89018Provide implementation for PSR-17 HTTP Message Factories

Benjamin Franzke 08/26/19, 16:45 updated 12/23/19, 22:54

Description

PSR-17 [1] HTTP Factories are useful in generic middlewares or request handlers, as they allow to create PSR-7 responses without relying on a specific PSR-7 implementation.

Gains for TYPO3 extensions:

  • While the TYPO3’s PSR-7 implementation is marked @internal, the availability of the PSR-17 interfaces is considered public TYPO3 API (implementations are made available through the DI container)
  • Allows TYPO3 extensions to inlude generic PSR-15 middlewares from external packages (which may already make use of PSR-17 factories to create PSR-7 response objects).

[1] https://www.php-fig.org/psr/psr-17/

Reviews 1