RequestFactory implements RequestFactoryInterface
Class RequestFactory to create Request objects Returns PSR-7 Request objects
Table of Contents
Interfaces
- RequestFactoryInterface
Methods
- createRequest() : RequestInterface
- Create a new request.
- request() : ResponseInterface
- Create a guzzle request object with our custom implementation
Methods
createRequest()
Create a new request.
    public
                    createRequest(string $method, UriInterface|string $uri) : RequestInterface
    Parameters
- $method : string
- 
                    The HTTP method associated with the request. 
- $uri : UriInterface|string
- 
                    The URI associated with the request. 
Return values
RequestInterfacerequest()
Create a guzzle request object with our custom implementation
    public
                    request(string $uri[, string $method = 'GET' ][, array<string|int, mixed> $options = [] ]) : ResponseInterface
    Parameters
- $uri : string
- 
                    the URI to request 
- $method : string = 'GET'
- 
                    the HTTP method (defaults to GET) 
- $options : array<string|int, mixed> = []
- 
                    custom options for this request