WordPress\AiClientDependencies\Psr\Http\Message

RequestFactoryInterface::createRequest │ public │ WP 1.0

Create a new request.

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

Хуков нет.

Возвращает

RequestInterface.

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

$RequestFactoryInterface = new RequestFactoryInterface();
$RequestFactoryInterface->createRequest( $method, $uri ): RequestInterface;
$method(строка) (обязательный)
The HTTP method associated with the request.
$uri(UriInterface|строка) (обязательный)
The URI associated with the request. If
php the value is a string, the factory MUST create a UriInterface instance based on it. .

Код RequestFactoryInterface::createRequest() WP 7.1.2

public function createRequest(string $method, $uri): RequestInterface;