-
Notifications
You must be signed in to change notification settings - Fork 1
RequestFactory: createRequest Example
Terry L edited this page Jun 21, 2020
·
4 revisions
Shieldon\Psr17\RequestFactory
Create a new request.
-
param
stringmethod*The HTTP method associated with the request. -
param
UriInterface|stringuri*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-httpShieldon PSR HTTP implementation written by Terry L. from Taiwan.
