You are here

public function RequestInterface::getRequestTarget in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/psr/http-message/src/RequestInterface.php \Psr\Http\Message\RequestInterface::getRequestTarget()

Retrieves the message's request target.

Retrieves the message's request-target either as it will appear (for clients), as it appeared at request (for servers), or as it was specified for the instance (see withRequestTarget()).

In most cases, this will be the origin-form of the composed URI, unless a value was provided to the concrete implementation (see withRequestTarget() below).

If no URI is available, and no request-target has been specifically provided, this method MUST return the string "/".

Return value

string

2 methods override RequestInterface::getRequestTarget()
Request::getRequestTarget in vendor/guzzlehttp/psr7/src/Request.php
Retrieves the message's request target.
ServerRequest::getRequestTarget in vendor/symfony/psr-http-message-bridge/Tests/Fixtures/ServerRequest.php
Retrieves the message's request target.

File

vendor/psr/http-message/src/RequestInterface.php, line 42

Class

RequestInterface
Representation of an outgoing, client-side request.

Namespace

Psr\Http\Message

Code

public function getRequestTarget();