TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
RequestFactory Class Reference

Public Member Functions

 request (string $uri, string $method= 'GET', array $options=[])
 

Protected Member Functions

 getClient ()
 

Detailed Description

Class RequestFactory to create Request objects Returns PSR-7 Request objects (currently the Guzzle implementation).

Definition at line 26 of file RequestFactory.php.

Member Function Documentation

getClient ( )
protected

Creates the client to do requests

Returns
ClientInterface

Definition at line 46 of file RequestFactory.php.

References $GLOBALS, and GeneralUtility\makeInstance().

Referenced by RequestFactory\request().

request ( string  $uri,
string  $method = 'GET',
array  $options = [] 
)

Create a request object with our custom implementation

Parameters
string$urithe URI to request
string$methodthe HTTP method (defaults to GET)
array$optionscustom options for this request
Returns
ResponseInterface

Definition at line 36 of file RequestFactory.php.

References RequestFactory\getClient().