protected function generateHeaders(array $options, $body)
	{
		$options += ['headers' => []];
		if ($this->gzipEnabled)
		{
			$options['headers'][] = 'Accept-Encoding: gzip';
		}
		$options['headers'][] = 'Content-Length: ' . strlen($body);

		return $options['headers'];
	}
protected function generateHeaders(array $options, $body)
	{
		$options += ['headers' => []];
		if ($this->gzipEnabled)
		{
			$options['headers'][] = 'Accept-Encoding: gzip';
		}
		$options['headers'][] = 'Content-Length: ' . strlen($body);

		return $options['headers'];
	}
protected function generateHeaders ( array $ options , $ body ) { $ options += [ 'headers' => [ ] ] ; if ( $ this -> gzipEnabled ) { $ options [ 'headers' ] [ ] = 'Accept-Encoding: gzip' ; } $ options [ 'headers' ] [ ] = 'Content-Length: ' . strlen ( $ body ) ; return $ options [ 'headers' ] ; }
Generate a list of headers for given request

@param  array    $options Request options
@param  string   $body    Request body
@return string[]
Generate a list of headers for given request