-
Notifications
You must be signed in to change notification settings - Fork 1
Response: __construct Example
Terry L edited this page Jun 20, 2020
·
2 revisions
Shieldon\Psr7\Message\Response
Extends Message.
-
param
int
status= 200
Response HTTP status code. -
param
array
headers= []
Response headers. -
param
StreamInterface|string
body= ""
Response body. -
param
string
version= "1.1"
Response protocol version. -
param
string
reason= "OK"
Reasponse HTTP reason phrase.
Example:
$response = new \Shieldon\Psr7\Response();
composer require shieldon/psr-http
Shieldon PSR HTTP implementation written by Terry L. from Taiwan.