DiscordPHP-Http Documentation

React
in package
implements DriverInterface

react/http driver for Discord HTTP client.

Tags
author

David Cole david.cole1340@gmail.com

Table of Contents

Interfaces

DriverInterface
Interface for an HTTP driver.

Properties

$browser  : Browser
ReactPHP/HTTP browser.
$loop  : LoopInterface
ReactPHP event loop.

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.

Return values
PromiseInterface
On this page

Search results