-
Notifications
You must be signed in to change notification settings - Fork 2
Request: withRequestTarget Example
Terry L edited this page Jun 20, 2020
·
3 revisions
Shieldon\Psr7\Request
Extends Message.
Return an instance with the specific request-target.
-
param
string
requestTarget*
-
return
static
Example:
$request = $request->withRequestTarget('https://www.example2.com/en/');
echo $request->getRequestTarget();
// Outputs: https://www.example2.com/en/
composer require shieldon/psr-http
Shieldon PSR HTTP implementation written by Terry L. from Taiwan.