-
Notifications
You must be signed in to change notification settings - Fork 1
PSR 17: RequestFactory Example
Terry L edited this page Jun 21, 2020
·
3 revisions
Namespace
Shieldon\Psr17\RequestFactory
None
-
param
string
method*
The HTTP method associated with the request. -
param
UriInterface|string
uri*
The URI associated with the request. -
return
RequestInterface
Example:
use Shieldon\Psr17\RequestFactory;
$requestFactory = new RequestFactory();
$request = $requestFactory->createRequest('GET', 'https://www.google.com');
composer require shieldon/psr-http
Shieldon PSR HTTP implementation written by Terry L. from Taiwan.