-
Notifications
You must be signed in to change notification settings - Fork 1
Request: __construct Example
Terry L edited this page Jun 20, 2020
·
2 revisions
Shieldon\Psr7\Request
Extends Message.
-
param
stringmethod= "GET"Request HTTP method. -
param
string|UriInterfaceuri= ""Request URI object URI or URL. -
param
string|StreamInterfacebody= ""Request body - see setBody() -
param
arrayheaders= []Request headers. -
param
stringversion= "1.1"Request protocol version.
Example:
$request = new \Shieldon\Psr7\Request('GET', 'https://www.example.com');composer require shieldon/psr-httpShieldon PSR HTTP implementation written by Terry L. from Taiwan.
