GuzzleHttpPsr7stream_for

Create a new stream based on the input type.

Description

GuzzleHttp\Psr7\stream_for( (string) $resource = '', (bool) array $options = false ); 

Options is an associative array that can contain the following keys: - metadata: Array of custom metadata. - size: Size of the stream.

Parameters (2)

0. $resource — Optional. (string) => ''
Entity body data
1. $options — Optional. (bool) => array $options = false
Additional options

Usage

  1. if ( !function_exists( 'GuzzleHttp\Psr7\stream_for' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'w3-total-cache/lib/Azure/GuzzleHttp/Psr7/functions.php'; 
  3.  
  4. // Entity body data 
  5. $resource = ''; 
  6.  
  7. // Additional options 
  8. $options = array $options = false; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = GuzzleHttp\Psr7\stream_for($resource, $options); 
  12.  

Defined (1)

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

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