Esc
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
Table of Contents
Interfaces
- ClientInterface
Properties
- $maxRedirects : int
- $timeout : int
- $verifySsl : bool
Methods
- __construct() : mixed
- sendRequest() : ResponseInterface
Properties
$maxRedirects
private
int
$maxRedirects
$timeout
private
int
$timeout
$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