InfluxDb\Driver\Guzzle::getRequestParameters PHP Method

getRequestParameters() protected method

protected getRequestParameters ( null $data = null ) : array
$data null
return array
    protected function getRequestParameters($data = null)
    {
        $requestParameters = ['http_errors' => false];
        if ($data) {
            $requestParameters += ['body' => $data];
        }
        if (isset($this->parameters['auth'])) {
            $requestParameters += ['auth' => $this->parameters['auth']];
        }
        return $requestParameters;
    }