You are here

interface HttpClientInterface in Backup and Migrate 8.4

Interface HttpClientInterface.

@package BackupMigrate\Core\Service

Hierarchy

Expanded class hierarchy of HttpClientInterface

All classes that implement HttpClientInterface

File

lib/backup_migrate_core/src/Service/HTTPClientInterface.php, line 12

Namespace

BackupMigrate\Core\Service
View source
interface HttpClientInterface {

  /**
   * Get the body of the given resource.
   *
   * @param $url
   *
   * @return mixed
   */
  public function get($url);

  /**
   * Post the given data (as a string or an array) to the given URL.
   *
   * @param $url
   * @param $data
   *
   * @return mixed
   */
  public function post($url, $data);

  /**
   * Post a file along with other data (as an array).
   *
   * @param $url
   * @param \BackupMigrate\Core\File\ReadableStreamBackupFile $file
   * @param $data
   *
   * @return mixed
   */
  public function postFile($url, ReadableStreamBackupFile $file, $data);

}

Members

Namesort descending Modifiers Type Description Overrides
HttpClientInterface::get public function Get the body of the given resource. 1
HttpClientInterface::post public function Post the given data (as a string or an array) to the given URL. 1
HttpClientInterface::postFile public function Post a file along with other data (as an array). 1