WordPress\AiClientDependencies\Psr\Http\Message

RequestInterface::withRequestTargetpublicWP 1.0

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.

Метод класса: RequestInterface{}

Хуков нет.

Возвращает

static.

Использование

$RequestInterface = new RequestInterface();
$RequestInterface->withRequestTarget( $requestTarget ): RequestInterface;
$requestTarget(строка) (обязательный)
.

Код RequestInterface::withRequestTarget() WP 7.0.4

public function withRequestTarget(string $requestTarget): RequestInterface;