gedcomx-php-client
  • Namespace
  • Class

Namespaces

  • Gedcomx
    • Agent
    • Atom
    • Common
    • Conclusion
    • Extensions
      • FamilySearch
        • Platform
          • Artifacts
          • Discussions
          • Tree
          • Users
        • Rs
          • Client
            • FamilyTree
            • Helpers
            • Memories
            • Util
        • Rt
        • Types
    • GedcomxFile
    • Links
    • Records
    • Rs
      • Client
        • Exception
        • Options
        • Util
    • Rt
    • Search
    • Source
    • Support
    • Types
    • Util
    • Vocab

Classes

  • ChangeEntry
  • ChangeHistoryPage
  • LoggerMiddleware
  • ThrottlingMiddleware

Class ThrottlingMiddleware

Middleware to automatically handle throttling.

Namespace: Gedcomx\Extensions\FamilySearch\Rs\Client\Util
Located at Extensions/FamilySearch/Rs/Client/Util/ThrottlingMiddleware.php

Methods summary

public static callable
# middleware( )

Returns

callable
Returns a function that accepts the next handler.
public
# __construct( callable $nextHandler )

Parameters

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

Parameters

$request
$options

Returns

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

Parameters

$request
$options
$response

Returns

Psr\Http\Message\ResponseInterface|PromiseInterface

Properties summary

public static integer $maxRetries
# 2
gedcomx-php-client API documentation generated by ApiGen