WordPress\AiClientDependencies\Psr\Http\Message

RequestFactoryInterface{}interfaceWP 1.0

No Hooks.

Usage

$RequestFactoryInterface = new RequestFactoryInterface();
// use class methods

Methods

  1. public createRequest(string $method, $uri)

RequestFactoryInterface{} code WP 7.0

interface RequestFactoryInterface
{
    /**
     * Create a new request.
     *
     * @param string $method The HTTP method associated with the request.
     * @param UriInterface|string $uri The URI associated with the request. If
     *     the value is a string, the factory MUST create a UriInterface
     *     instance based on it.
     *
     * @return RequestInterface
     */
    public function createRequest(string $method, $uri): RequestInterface;
}