[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/php-http/message-factory/src/ -> StreamFactory.php (source)

   1  <?php
   2  
   3  namespace Http\Message;
   4  
   5  use Psr\Http\Message\StreamInterface;
   6  
   7  /**
   8   * Factory for PSR-7 Stream.
   9   *
  10   * @author Márk Sági-Kazár <[email protected]>
  11   */
  12  interface StreamFactory
  13  {
  14      /**
  15       * Creates a new PSR-7 stream.
  16       *
  17       * @param string|resource|StreamInterface|null $body
  18       *
  19       * @return StreamInterface
  20       *
  21       * @throws \InvalidArgumentException If the stream body is invalid.
  22       * @throws \RuntimeException         If creating the stream from $body fails. 
  23       */
  24      public function createStream($body = null);
  25  }


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer