class RequestFactory (View source)

Has the ability to create client requests.

Methods

RequestInterface
createRequest(string $method, UriInterface|string $uri)

Create a new request.

Details

RequestInterface createRequest(string $method, UriInterface|string $uri)

Create a new request.

Parameters

string $method The HTTP method associated with the request.
UriInterface|string $uri The URI associated with the request.

Return Value

RequestInterface