Swoole\Http\Client::setData

Set the HTTP request body data.

Description

public ReturnType Swoole\Http\Client::setData(string $data)

The HTTP method will be changed to be POST.

Parameters

data

Return Values