-
Notifications
You must be signed in to change notification settings - Fork 1
Request: getRequestTarget Example
Terry L edited this page Jun 20, 2020
·
3 revisions
Shieldon\Psr7\Request
Extends Message.
Retrieves the message's request target.
-
return
string
In most cases, this will be the origin-form of the composed URI, unless it is changed by withRequestTarget
method.
Example:
echo $request->getRequestTarget();
// Outputs: /
composer require shieldon/psr-http
Shieldon PSR HTTP implementation written by Terry L. from Taiwan.