|
static | setup (array $settings) |
| Setup method for the redirect middleware.
|
|
|
const | HISTORY_HEADER = 'X-Guzzle-Redirect-History' |
|
const | STATUS_HISTORY_HEADER = 'X-Guzzle-Redirect-Status-History' |
|
◆ __construct()
core\local\guzzle\redirect_middleware::__construct |
( |
callable | $next, |
|
|
array | $settings ) |
Redirect middleware constructor.
- Parameters
-
| callable(RequestInterface,array) | PromiseInterface $next The next handler to invoke |
array | $settings | The options from the client |
◆ __invoke()
core\local\guzzle\redirect_middleware::__invoke |
( |
RequestInterface | $request, |
|
|
array | $options ) |
Curl security setup.
- Parameters
-
RequestInterface | $request | The interface of the request |
array | $options | The options for the request |
- Return values
-
◆ set_security()
Set the security according to settings.
- Parameters
-
curl_security_helper_base | $securityhelper | |
- Return values
-
◆ setup()
static core\local\guzzle\redirect_middleware::setup |
( |
array | $settings | ) |
|
|
static |
Setup method for the redirect middleware.
- Parameters
-
array | $settings | The settings of the request |
- Return values
-
◆ $defaultSettings
array GuzzleHttp\RedirectMiddleware::$defaultSettings |
|
staticinherited |
Initial value:= [
'max' => 5,
'protocols' => ['http', 'https'],
'strict' => false,
'referer' => false,
'track_redirects' => false,
]
The documentation for this class was generated from the following file:
- lib/classes/local/guzzle/redirect_middleware.php