interface HttpClientInterface in Backup and Migrate 8.4
Interface HttpClientInterface.
@package BackupMigrate\Core\Service
Hierarchy
- interface \BackupMigrate\Core\Service\HttpClientInterface
 
Expanded class hierarchy of HttpClientInterface
All classes that implement HttpClientInterface
File
- lib/
backup_migrate_core/ src/ Service/ HTTPClientInterface.php, line 12  
Namespace
BackupMigrate\Core\ServiceView 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
| 
            Name | 
                  Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| 
            HttpClientInterface:: | 
                  public | function | Get the body of the given resource. | 1 | 
| 
            HttpClientInterface:: | 
                  public | function | Post the given data (as a string or an array) to the given URL. | 1 | 
| 
            HttpClientInterface:: | 
                  public | function | Post a file along with other data (as an array). | 1 |