HttpTransport
MMO\admin\monitoring · 1 symbole · générée le 27 Oct 2026
class MMO\admin\monitoring\HttpTransport
implements MMO\admin\monitoring\iHttpTransport- Espace de noms
MMO\admin\monitoring- Implémente
- iHttpTransport
- Voir
iHttpTransport with curl: redirects followed, the certificate read during the same request.
$answer = (new HttpTransport())->fetch('https://my.oviepro.fr/', [], 10);
$answer['status']; // 200
$answer['certificate']['expires']; // a unix timestamp
Propriétés2
string $userAgent = 'mmo.admin-hub/1.0 (monitoring)'- Type
- string
bool $verify = true- Type
- bool
Méthodes4
protected function certificate(array $chain): ?array| $chain | array | curl's certinfo: the server's certificate first |
| retourne | null | array | int, issuer: string, subject: string}|null |
function debugName(): stringfunction fetch(string $url, array $headers = [], int $timeout = 15): arrayprotected function name(string $dn): string| $dn | string | |
| retourne | string | the CN, or the O, of a distinguished name: CN=R11, O=Let's Encrypt, C=US is R11 (Let's Encrypt) |