thesportsdb-client

RequestEvent
in package

FinalYes

One finished API call, passed to Config::$requestListener.

Table of Contents

Properties

$attempts  : int
HTTP requests made, counting retries; 0 when served from the cache.
$duration  : float
Seconds for the whole call, including rate-limit waits and retries.
$error  : Throwable|null
$fromCache  : bool
$status  : int|null
The last HTTP status; null if no response arrived or the result came from the cache.
$url  : string
The URL with any v1 key replaced by ***. Safe to log.

Methods

__construct()  : mixed

Properties

$attempts read-only

HTTP requests made, counting retries; 0 when served from the cache.

public int $attempts

$duration read-only

Seconds for the whole call, including rate-limit waits and retries.

public float $duration

$status read-only

The last HTTP status; null if no response arrived or the result came from the cache.

public int|null $status

$url read-only

The URL with any v1 key replaced by ***. Safe to log.

public string $url

Methods

__construct()

public __construct(string $url, int|null $status, int $attempts, bool $fromCache, float $duration, Throwable|null $error) : mixed
Parameters
$url : string
$status : int|null
$attempts : int
$fromCache : bool
$duration : float
$error : Throwable|null
On this page

Search results