MMOframework
Why AI Playground Libraries Documentation Search Agency
FR EN
Index

iHttpTransport

MMO\admin\monitoring · 1 symbol · generated 27 Oct 2026

interface

iHttpTransport

iHttpTransport.php:11

How the hub asks a site something over http: the http probe's request, the application probe's metrics, the tools'.

interface MMO\admin\monitoring\iHttpTransport
Namespace
MMO\admin\monitoring
Its own class so that what answers can be swapped: the demo's fleet answers from a simulation (`MMO\admin\demo\DemoTransport`), a test from an array. A hub names it in `hub.json`'s `transport`.

Methods1

fetch($url, $headers, $timeout)

abstractiHttpTransport.php:19
abstract function fetch(string $url, array $headers = [], int $timeout = 15): array
$urlstring
$headers = []array
$timeout = 15intseconds
returnsarrayint, timeMs: float, ttfbMs: float, size: int, body: string, headers: array<string, string>, url: string, ip: string, error: string, certificate: array{expires: int, issuer: string, subject: string}|null} status 0 when nothing answered (error says why); url the last one, redirects followed; header names lowercased