[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/carlos-mg89/oauth/src/OAuth/Common/Http/Client/ -> ClientInterface.php (source)

   1  <?php
   2  
   3  namespace OAuth\Common\Http\Client;
   4  
   5  use OAuth\Common\Http\Uri\UriInterface;
   6  
   7  /**
   8   * Any HTTP clients to be used with the library should implement this interface.
   9   */
  10  interface ClientInterface
  11  {
  12      /**
  13       * Any implementing HTTP providers should send a request to the provided endpoint with the parameters.
  14       * They should return, in string form, the response body and throw an exception on error.
  15       *
  16       * @param mixed        $requestBody
  17       * @param string       $method
  18       *
  19       * @return string
  20       */
  21      public function retrieveResponse(
  22          UriInterface $endpoint,
  23          $requestBody,
  24          array $extraHeaders = [],
  25          $method = 'POST'
  26      );
  27  }


Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1