Your IP : 216.73.216.220


Current Path : /var/www/html/vendor/magento/framework/HTTP/AsyncClient/
Upload File :
Current File : /var/www/html/vendor/magento/framework/HTTP/AsyncClient/HttpResponseDeferredInterface.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

declare(strict_types=1);

namespace Magento\Framework\HTTP\AsyncClient;

use Magento\Framework\Async\CancelableDeferredInterface;

/**
 * Deferred HTTP response.
 */
interface HttpResponseDeferredInterface extends CancelableDeferredInterface
{
    /**
     * @inheritdoc
     * @return Response HTTP response.
     * @throws HttpException When failed to send the request,
     * if response has 400+ status code it will not be treated as an exception.
     */
    public function get(): Response;
}