[ Index ]

PHP Cross Reference of phpBB-3.2.8-deutsch

title

Body

[close]

/vendor/guzzlehttp/guzzle/src/Subscriber/ -> History.php (summary)

(no description)

File Size: 172 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

History:: (12 methods):
  __construct()
  getEvents()
  __toString()
  onComplete()
  onError()
  getIterator()
  getRequests()
  count()
  getLastRequest()
  getLastResponse()
  clear()
  add()


Class: History  - X-Ref

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

__construct($limit = 10)   X-Ref
No description

getEvents()   X-Ref
No description

__toString()   X-Ref
Convert to a string that contains all request and response headers

return: string

onComplete(CompleteEvent $event)   X-Ref
No description

onError(ErrorEvent $event)   X-Ref
No description

getIterator()   X-Ref
Returns an Iterator that yields associative array values where each
associative array contains the following key value pairs:

- request: Representing the actual request that was received.
- sent_request: A clone of the request that will not be mutated.
- response: The response that was received (if available).

return: \Iterator

getRequests($asSent = false)   X-Ref
Get all of the requests sent through the plugin.

Requests can be modified after they are logged by the history
subscriber. By default this method will return the actual request
instances that were received. Pass true to this method if you wish to
get copies of the requests that represent the request state when it was
initially logged by the history subscriber.

param: bool $asSent Set to true to get clones of the requests that have
return: RequestInterface[]

count()   X-Ref
Get the number of requests in the history

return: int

getLastRequest($asSent = false)   X-Ref
Get the last request sent.

Requests can be modified after they are logged by the history
subscriber. By default this method will return the actual request
instance that was received. Pass true to this method if you wish to get
a copy of the request that represents the request state when it was
initially logged by the history subscriber.

param: bool $asSent Set to true to get a clone of the last request that
return: RequestInterface

getLastResponse()   X-Ref
Get the last response in the history

return: ResponseInterface|null

clear()   X-Ref
Clears the history


add(RequestInterface $request,ResponseInterface $response = null)   X-Ref
Add a request to the history

param: RequestInterface  $request  Request to add
param: ResponseInterface $response Response of the request



Generated: Tue Apr 7 19:42:26 2020 Cross-referenced by PHPXref 0.7.1