-
Notifications
You must be signed in to change notification settings - Fork 1
ServerRequest: __construct Example
Terry L edited this page Jun 20, 2020
·
3 revisions
Shieldon\Psr7\ServerRequest
Extends Request.
-
param
stringmethod= "GET"Request HTTP method. -
param
string|UriInterfaceuri= ""Request URI object URI or URL. -
param
string|StreamInterfacebody= ""Request body. -
param
arrayheaders= []Request headers. -
param
stringversion= "1.1"Request protocol version. -
param
arrayserverParams= []Typically $_SERVER superglobal. -
param
arraycookieParams= []Typically $_COOKIE superglobal. -
param
arraypostParams= []Typically $_POST superglobal. -
param
arraygetParams= []Typically $_GET superglobal. -
param
arrayfilesParams= []Typically $_FILES superglobal.
Example:
$serverRequest = new \Shieldon\Psr7\ServerRequest();composer require shieldon/psr-httpShieldon PSR HTTP implementation written by Terry L. from Taiwan.
