Overview

Namespaces

  • Docta
    • MercadoLibre
      • Exception
      • OAuth2
        • Client
          • Test
  • GuzzleHttp
    • Cookie
    • Exception
    • Handler
    • Promise
      • Test
      • Tests
    • Psr7
    • Test
      • Handler
    • Tests
      • CookieJar
      • Event
      • Exception
      • Handler
      • Promise
      • Psr7
  • League
    • OAuth2
      • Client
        • Grant
          • Exception
        • Provider
          • Exception
        • Test
          • Grant
          • Provider
            • Exception
            • Fake
          • Token
          • Tool
        • Token
        • Tool
  • None
  • Psr
    • Http
      • Message

Classes

  • Client
  • HandlerStack
  • MessageFormatter
  • Middleware
  • Pool
  • PrepareBodyMiddleware
  • RedirectMiddleware
  • RequestOptions
  • RetryMiddleware
  • TransferStats
  • UriTemplate

Interfaces

  • ClientInterface

Functions

  • choose_handler
  • debug_resource
  • default_ca_bundle
  • default_user_agent
  • describe_type
  • headers_from_lines
  • is_host_in_noproxy
  • json_decode
  • json_encode
  • normalize_header_keys
  • uri_template
  • Overview
  • Namespace
  • Class
  • Download

Class RedirectMiddleware

Request redirect middleware.

Apply this middleware like other middleware using GuzzleHttp\Middleware::redirect().

Namespace: GuzzleHttp
Located at src/RedirectMiddleware.php
Methods summary
public
# __construct( callable $nextHandler )

Parameters

$nextHandler
Next handler to invoke.
public GuzzleHttp\Promise\PromiseInterface
# __invoke( Psr\Http\Message\RequestInterface $request, array $options )

Parameters

$request
$options

Returns

GuzzleHttp\Promise\PromiseInterface
public Psr\Http\Message\ResponseInterface|GuzzleHttp\Promise\PromiseInterface
# checkRedirect( Psr\Http\Message\RequestInterface $request, array $options, Psr\Http\Message\ResponseInterface $response )

Parameters

$request
$options
$response

Returns

Psr\Http\Message\ResponseInterface|GuzzleHttp\Promise\PromiseInterface
public Psr\Http\Message\RequestInterface
# modifyRequest( Psr\Http\Message\RequestInterface $request, array $options, Psr\Http\Message\ResponseInterface $response )

Parameters

$request
$options
$response

Returns

Psr\Http\Message\RequestInterface
Constants summary
string HISTORY_HEADER
# 'X-Guzzle-Redirect-History'
string STATUS_HISTORY_HEADER
# 'X-Guzzle-Redirect-Status-History'
Properties summary
public static array $defaultSettings
# [ 'max' => 5, 'protocols' => ['http', 'https'], 'strict' => false, 'referer' => false, 'track_redirects' => false, ]
MercadoLibre PHP SDK API documentation generated by ApiGen