\Psr\Http\MessageRequestFactoryInterface

Summary

Methods
Constants
createRequest()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

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.

Returns

\Psr\Http\Message\RequestInterface —