interface ResponseFactoryInterface
Hierarchy
- interface \Psr\Http\Message\ResponseFactoryInterface
Expanded class hierarchy of ResponseFactoryInterface
All classes that implement ResponseFactoryInterface
11 files declare their use of ResponseFactoryInterface
- CommonPsr17ClassesStrategy.php in vendor/
php-http/ discovery/ src/ Strategy/ CommonPsr17ClassesStrategy.php - DependencyResolver.php in vendor/
open-telemetry/ sdk/ Common/ Adapter/ HttpDiscovery/ DependencyResolver.php - FactoryResolverInterface.php in vendor/
open-telemetry/ sdk/ Common/ Http/ Psr/ Message/ FactoryResolverInterface.php - HttpFactory.php in vendor/
guzzlehttp/ psr7/ src/ HttpFactory.php - MessageFactory.php in vendor/
open-telemetry/ sdk/ Common/ Http/ Psr/ Message/ MessageFactory.php
File
-
vendor/
psr/ http-factory/ src/ ResponseFactoryInterface.php, line 5
Namespace
Psr\Http\MessageView source
interface ResponseFactoryInterface {
/**
* Create a new response.
*
* @param int $code HTTP status code; defaults to 200
* @param string $reasonPhrase Reason phrase to associate with status code
* in generated response; if none is provided implementations MAY use
* the defaults as suggested in the HTTP specification.
*
* @return ResponseInterface
*/
public function createResponse(int $code = 200, string $reasonPhrase = '') : ResponseInterface;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
ResponseFactoryInterface::createResponse | public | function | Create a new response. | 2 |