GuzzleHttpPsr7rewind_body

Attempts to rewind a message body and throws an exception on failure.

Description

GuzzleHttp\Psr7\rewind_body( (MessageInterface) Psr\Http\Message\MessageInterface $message ); 

The body of the message will only be rewound if a call to tell() returns a value other than 0..

Parameters (1)

0. $message (MessageInterface) => Psr\Http\Message\MessageInterface $message
Message to rewind

Usage

  1. if ( !function_exists( 'GuzzleHttp\Psr7\rewind_body' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'w3-total-cache/lib/Azure/GuzzleHttp/Psr7/functions.php'; 
  3.  
  4. // Message to rewind 
  5. $message = Psr\Http\Message\MessageInterface $message; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = GuzzleHttp\Psr7\rewind_body($message); 
  9.  

Defined (1)

The function is defined in the following location(s).

/lib/Azure/GuzzleHttp/Psr7/functions.php