Swoole\Http\Client::setData
PHP function
Edit on GitHub ✎
(PECL swoole >= 1.9.0)
Set the HTTP request body data.
Description
Swoole\Http\Client::setData(string $data): ReturnType
The HTTP method will be changed to be POST.
Parameters
data