WordPress\AiClientDependencies\Psr\Http\Message

RequestFactoryInterface::createRequestpublicWP 1.0

Create a new request.

Method of the class: RequestFactoryInterface{}

No Hooks.

Returns

RequestInterface.

Usage

$RequestFactoryInterface = new RequestFactoryInterface();
$RequestFactoryInterface->createRequest( $method, $uri ): RequestInterface;
$method(string) (required)
The HTTP method associated with the request.
$uri(UriInterface|string) (required)
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() code WP 7.0

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