<?php namespace Psr\Http\Message; 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; }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
RequestFactoryInterface.php | File | 517 B | 0644 |
|
ResponseFactoryInterface.php | File | 564 B | 0644 |
|
ServerRequestFactoryInterface.php | File | 951 B | 0644 |
|
StreamFactoryInterface.php | File | 1.43 KB | 0644 |
|
UploadedFileFactoryInterface.php | File | 1.12 KB | 0644 |
|
UriFactoryInterface.php | File | 342 B | 0644 |
|