[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

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

   1  <?php
   2  
   3  namespace Http\Message;
   4  
   5  use Psr\Http\Message\UriInterface;
   6  use Psr\Http\Message\RequestInterface;
   7  use Psr\Http\Message\StreamInterface;
   8  
   9  /**
  10   * Factory for PSR-7 Request.
  11   *
  12   * @author Márk Sági-Kazár <[email protected]>
  13   */
  14  interface RequestFactory
  15  {
  16      /**
  17       * Creates a new PSR-7 request.
  18       *
  19       * @param string                               $method
  20       * @param string|UriInterface                  $uri
  21       * @param array                                $headers
  22       * @param resource|string|StreamInterface|null $body
  23       * @param string                               $protocolVersion
  24       *
  25       * @return RequestInterface
  26       */
  27      public function createRequest(
  28          $method,
  29          $uri,
  30          array $headers = [],
  31          $body = null,
  32          $protocolVersion = '1.1'
  33      );
  34  }


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