PHP Class Zend\Diactoros\Response
Responses are considered immutable; all methods that might change state are
implemented such that they retain the internal state of the current
message and return a new instance that contains the changed state.
Datei anzeigen
Open project: zendframework/zend-diactoros
Class Usage Examples
Public Methods
Private Methods
Method Details
__construct()
public method
public __construct ( string | resource | Psr\Http\Message\StreamInterface $body = 'php://memory', integer $status = 200, array $headers = [] ) |
$body |
string | resource | Psr\Http\Message\StreamInterface |
Stream identifier and/or actual stream resource |
$status |
integer |
Status code for the response, if any. |
$headers |
array |
Headers for the response, if any. |
getReasonPhrase()
public method
getStatusCode()
public method
withStatus()
public method