Guzzle\Http\CachingEntityBody::__construct PHP Method

__construct() public method

We will treat the buffer object as the body of the entity body {@inheritdoc}
public __construct ( Guzzle\Http\EntityBodyInterface $body )
$body Guzzle\Http\EntityBodyInterface
    public function __construct(EntityBodyInterface $body)
    {
        $this->remoteStream = $body;
        $this->body = new EntityBody(fopen('php://temp', 'r+'));
    }