Overview

Namespaces

  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
    • Tests
      • Batch
      • Cache
      • Common
        • Cache
        • Exception
      • Http
        • Curl
        • Exception
        • Message
          • Header
      • Inflection
      • Iterator
      • Log
      • Message
      • Mock
      • Parser
        • Cookie
        • Message
      • Parsers
        • UriTemplate
      • Plugin
        • Async
        • Backoff
        • Cache
        • Cookie
          • CookieJar
        • CurlAuth
        • ErrorResponse
        • History
        • Log
        • Md5
        • Mock
        • Oauth
        • Redirect
      • Service
        • Builder
        • Command
          • LocationVisitor
            • Request
            • Response
        • Description
        • Exception
        • Mock
          • Command
            • Sub
          • Model
        • Resource
      • Stream
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • VivaPayments
      • Message
  • PHP

Classes

  • AbstractBackoffStrategy
  • AbstractErrorCodeBackoffStrategy
  • BackoffLogger
  • BackoffPlugin
  • CallbackBackoffStrategy
  • ConstantBackoffStrategy
  • CurlBackoffStrategy
  • ExponentialBackoffStrategy
  • HttpBackoffStrategy
  • LinearBackoffStrategy
  • ReasonPhraseBackoffStrategy
  • TruncatedBackoffStrategy

Interfaces

  • BackoffStrategyInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class ReasonPhraseBackoffStrategy

Strategy used to retry HTTP requests when the response's reason phrase matches one of the registered phrases.

Guzzle\Plugin\Backoff\AbstractBackoffStrategy implements Guzzle\Plugin\Backoff\BackoffStrategyInterface
Extended by Guzzle\Plugin\Backoff\AbstractErrorCodeBackoffStrategy
Extended by Guzzle\Plugin\Backoff\ReasonPhraseBackoffStrategy
Namespace: Guzzle\Plugin\Backoff
Located at src/Guzzle/Plugin/Backoff/ReasonPhraseBackoffStrategy.php
Methods summary
public boolean
# makesDecision( )

Check if the strategy does filtering and makes decisions on whether or not to retry.

Check if the strategy does filtering and makes decisions on whether or not to retry.

Strategies that return false will never retry if all of the previous strategies in a chain defer on a backoff decision.

Returns

boolean

Overrides

Guzzle\Plugin\Backoff\AbstractErrorCodeBackoffStrategy::makesDecision()
protected boolean|integer|null
# getDelay( integer $retries, Guzzle\Http\Message\RequestInterface $request, Guzzle\Http\Message\Response $response = null, Guzzle\Http\Exception\HttpException $e = null )

Implement the concrete strategy

Implement the concrete strategy

Parameters

$retries
Number of retries of the request
$request
Request that was sent
$response
Response that was received. Note that there may not be a response
$e
Exception that was encountered if any

Returns

boolean|integer|null

Returns false to not retry or the number of seconds to delay between retries. Return true or null to defer to the next strategy if available, and if not, return 0.

Methods inherited from Guzzle\Plugin\Backoff\AbstractErrorCodeBackoffStrategy
__construct(), getDefaultFailureCodes()
Methods inherited from Guzzle\Plugin\Backoff\AbstractBackoffStrategy
getBackoffPeriod(), getNext(), setNext()
Properties inherited from Guzzle\Plugin\Backoff\AbstractErrorCodeBackoffStrategy
$defaultErrorCodes, $errorCodes
Properties inherited from Guzzle\Plugin\Backoff\AbstractBackoffStrategy
$next
Omnipay Viva Payments Gateway Module API Documentation API documentation generated by ApiGen