public function EntityBodyInterface::setRewindFunction

Specify a custom callback used to rewind a non-seekable stream. This can be useful entity enclosing requests that are redirected.

Parameters

mixed $callable Callable to invoke to rewind a non-seekable stream. The callback must accept an: EntityBodyInterface object, perform the rewind if possible, and return a boolean representing whether or not the rewind was successful.

Return value

self

2 methods override EntityBodyInterface::setRewindFunction()
AbstractEntityBodyDecorator::setRewindFunction in drupal/core/vendor/guzzle/http/Guzzle/Http/AbstractEntityBodyDecorator.php
@codeCoverageIgnore
EntityBody::setRewindFunction in drupal/core/vendor/guzzle/http/Guzzle/Http/EntityBody.php
Specify a custom callback used to rewind a non-seekable stream. This can be useful entity enclosing requests that are redirected.

File

drupal/core/vendor/guzzle/http/Guzzle/Http/EntityBodyInterface.php, line 21

Class

EntityBodyInterface
Entity body used with an HTTP request or response

Namespace

Guzzle\Http

Code

public function setRewindFunction($callable);