public function RequestInterface::withRequestTarget in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/psr/http-message/src/RequestInterface.php \Psr\Http\Message\RequestInterface::withRequestTarget()
Return an instance with the specific request-target.
If the request needs a non-origin-form request-target — e.g., for specifying an absolute-form, authority-form, or asterisk-form — this method may be used to create an instance with the specified request-target, verbatim.
This method MUST be implemented in such a way as to retain the immutability of the message, and MUST return an instance that has the changed request target.
@link http://tools.ietf.org/html/rfc7230#section-2.7 (for the various request-target forms allowed in request messages)
Parameters
mixed $requestTarget:
Return value
self
2 methods override RequestInterface::withRequestTarget()
- Request::withRequestTarget in vendor/
guzzlehttp/ psr7/ src/ Request.php - Return an instance with the specific request-target.
- ServerRequest::withRequestTarget in vendor/
symfony/ psr-http-message-bridge/ Tests/ Fixtures/ ServerRequest.php - Return an instance with the specific request-target.
File
- vendor/
psr/ http-message/ src/ RequestInterface.php, line 61
Class
- RequestInterface
- Representation of an outgoing, client-side request.
Namespace
Psr\Http\MessageCode
public function withRequestTarget($requestTarget);