public
createRequest(string $method, UriInterface|string $uri): RequestInterface
Create a new request.
The HTTP method associated with the request.
The URI associated with the request. If the value is a string, the factory MUST create a UriInterface instance based on it.