* * This file is subject to the MIT license that is bundled * with this source code in the LICENSE file. */ namespace Discord\Http; use Psr\Http\Message\ResponseInterface; use React\Promise\ExtendedPromiseInterface; /** * Interface for an HTTP driver. * * @author David Cole */ interface DriverInterface { /** * Runs a request. * * Returns a promise resolved with a PSR response interface. * * @param Request $request * * @return ExtendedPromiseInterface */ public function runRequest(Request $request): ExtendedPromiseInterface; }