createRequest()
createRequest(string $method, \Psr\Http\Message\UriInterface|string $uri) : \Psr\Http\Message\RequestInterface
Create a new request.
Parameters
string | $method | The HTTP method associated with the request. |
\Psr\Http\Message\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. |