React
in package
implements
DriverInterface
react/http driver for Discord HTTP client.
Tags
Table of Contents
Interfaces
- DriverInterface
- Interface for an HTTP driver.
Properties
Methods
- __construct() : mixed
- Constructs the React driver.
- runRequest() : PromiseInterface
- Runs the request using the React HTTP client.
Properties
$browser
ReactPHP/HTTP browser.
protected
Browser
$browser
$loop
ReactPHP event loop.
protected
LoopInterface
$loop
Methods
__construct()
Constructs the React driver.
public
__construct(LoopInterface $loop[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $loop : LoopInterface
- $options : array<string|int, mixed> = []
runRequest()
Runs the request using the React HTTP client.
public
runRequest(Request $request) : PromiseInterface
Parameters
- $request : Request
-
The request to run.