WordPress\AiClientDependencies\Psr\Http\Message
RequestFactoryInterface::createRequest
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() RequestFactoryInterface::createRequest WP 7.1.2
public function createRequest(string $method, $uri): RequestInterface;