Skip to content
Snippets Groups Projects
Commit c682f9df authored by Jacob Dreesen's avatar Jacob Dreesen Committed by Christian Kuhn
Browse files

[BUGFIX] Code example in feature .rst

Releases: master, 8.7
Resolves: #81928
Change-Id: I7dc15a12e54f11630d162e670e04fb793b07aa5f
Reviewed-on: https://review.typo3.org/53554


Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 8f9729c6
Branches
Tags
No related merge requests found
......@@ -45,7 +45,7 @@ The `RequestFactory` class can be used like this:
// Initiate the Request Factory, which allows to run multiple requests
/** @var \TYPO3\CMS\Core\Http\RequestFactory $requestFactory */
$requestFactory = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Http\RequestFactory\RequestFactory::class);
$uri =
$url = 'https://typo3.com';
$additionalOptions = [
// Additional headers for this specific request
'headers' => ['Cache-Control' => 'no-cache'],
......@@ -65,4 +65,4 @@ The `RequestFactory` class can be used like this:
Extension authors are advised to use the `RequestFactory` class instead of using the Guzzle API directly in order to ensure
a clear upgrade path when updates to the underlying API need to be done.
.. index:: PHP-API, LocalConfiguration
\ No newline at end of file
.. index:: PHP-API, LocalConfiguration
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment