Habari\RemoteRequest::set_body PHP Метод

set_body() публичный Метод

Only used with POST requests, will raise a warning if used with GET.
public set_body ( string $body )
$body string The request body.
    public function set_body($body)
    {
        if ($this->method == 'GET') {
            throw new \Exception(_t('Trying to add a request body to a GET request.'));
        }
        $this->body = $body;
    }