HEX
Server: LiteSpeed
System: Linux node612.namehero.net 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: dfwparty (1186)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/dfwparty/www/wp-content/mu-plugins/wp-toolkit/Common/Clients/HttpClientInterface.php
<?php
// Copyright 1999-2026. WebPros International GmbH. All rights reserved.

namespace Webpros\WptkWpPlugin\WpToolkit\Common\Clients;

use Webpros\WptkWpPlugin\WpToolkit\Common\Models\WpToolkitRequest;
use Webpros\WptkWpPlugin\WpToolkit\Common\Models\WpToolkitResponse;
use Webpros\WptkWpPlugin\WpToolkit\UI\Api\Exceptions\BadRequestException;
use Webpros\WptkWpPlugin\WpToolkit\UI\Api\Exceptions\ServerException;

interface HttpClientInterface
{
    const METHOD_GET = 'GET';
    const METHOD_POST = 'POST';
    const METHOD_PUT = 'PUT';
    const METHOD_DELETE = 'DELETE';
    const METHOD_PATCH = 'PATCH';

    /**
     * @return WpToolkitResponse
     * @throws ServerException
     * @throws BadRequestException
     */
    public function request(WpToolkitRequest $request);
}