Alpha ZealPHP is early-stage and under active development. APIs may change between minor versions until v1.0. Feedback and bug reports welcome on GitHub.
API Index — Namespaces, Packages, Reports, Indices

Client
in package
implements ClientInterface

Coroutine HTTP client (PSR-18). Every method performs real network I/O via OpenSwoole's coroutine client, so it is exercised by live integration use, not unit tests — excluded from coverage measurement (no offline seam).

Tags
codeCoverageIgnore

Table of Contents

Interfaces

ClientInterface

Properties

$maxRedirects  : int
$timeout  : int
$verifySsl  : bool

Methods

__construct()  : mixed
sendRequest()  : ResponseInterface

Properties

$maxRedirects

private int $maxRedirects

$verifySsl

private bool $verifySsl

Methods

__construct()

public __construct([array{timeout?: int, verify_ssl?: bool, max_redirects?: int} $options = [] ]) : mixed
Parameters
$options : array{timeout?: int, verify_ssl?: bool, max_redirects?: int} = []

sendRequest()

public sendRequest(RequestInterface $request) : ResponseInterface
Parameters
$request : RequestInterface
Return values
ResponseInterface
On this page