Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • 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
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • HistoryPlugin
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class HistoryPlugin

Maintains a list of requests and responses sent using a request or client

Guzzle\Plugin\History\HistoryPlugin implements Symfony\Component\EventDispatcher\EventSubscriberInterface, IteratorAggregate, Countable
Namespace: Guzzle\Plugin\History
Located at Guzzle/Plugin/History/HistoryPlugin.php
Methods summary
public static array
# getSubscribedEvents( )

Returns an array of event names this subscriber wants to listen to.

Returns an array of event names this subscriber wants to listen to.

Returns

array
The event names to listen to

Implementation of

Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents()
public Guzzle\Plugin\History\HistoryPlugin
# add( Guzzle\Http\Message\RequestInterface $request )

Add a request to the history

Add a request to the history

Parameters

$request
Guzzle\Http\Message\RequestInterface
$request Request to add

Returns

Guzzle\Plugin\History\HistoryPlugin
public Guzzle\Plugin\History\HistoryPlugin
# setLimit( integer $limit )

Set the max number of requests to store

Set the max number of requests to store

Parameters

$limit
integer
$limit Limit

Returns

Guzzle\Plugin\History\HistoryPlugin
public integer
# getLimit( )

Get the request limit

Get the request limit

Returns

integer
public ArrayIterator
# getIterator( )

Get the requests in the history

Get the requests in the history

Returns

ArrayIterator

Implementation of

IteratorAggregate::getIterator()
public integer
# count( )

Get the number of requests in the history

Get the number of requests in the history

Returns

integer

Implementation of

Countable::count()
public Guzzle\Http\Message\RequestInterface
# getLastRequest( )

Get the last request sent

Get the last request sent

Returns

Guzzle\Http\Message\RequestInterface
public Guzzle\Http\Message\Response
# getLastResponse( )

Get the last response in the history

Get the last response in the history

Returns

Guzzle\Http\Message\Response
public Guzzle\Plugin\History\HistoryPlugin
# clear( )

Clears the history

Clears the history

Returns

Guzzle\Plugin\History\HistoryPlugin
public
# onRequestComplete( Guzzle\Common\Event $event )
Properties summary
protected integer $limit 10
#

The maximum number of requests to maintain in the history

The maximum number of requests to maintain in the history

protected array $requests array()
#

Requests that have passed through the plugin

Requests that have passed through the plugin

php-coveralls API documentation generated by ApiGen 2.8.0