ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Psr\Http\Message\ResponseFactoryInterface Interface Reference
+ Collaboration diagram for Psr\Http\Message\ResponseFactoryInterface:

Public Member Functions

 createResponse (int $code=200, string $reasonPhrase='')
 Create a new response. More...
 

Detailed Description

Definition at line 5 of file ResponseFactoryInterface.php.

Member Function Documentation

◆ createResponse()

Psr\Http\Message\ResponseFactoryInterface::createResponse ( int  $code = 200,
string  $reasonPhrase = '' 
)

Create a new response.

Parameters
int$codeHTTP status code; defaults to 200
string$reasonPhraseReason phrase to associate with status code in generated response; if none is provided implementations MAY use the defaults as suggested in the HTTP specification.
Returns
ResponseInterface

The documentation for this interface was generated from the following file: