protected function createContext($method, array $options, $body)
	{
		$contextOptions = [
			'ssl'  => ['verify_peer' => $this->sslVerifyPeer],
			'http' => [
				'method'  => $method,
				'timeout' => $this->timeout,
				'header'  => $this->generateHeaders($options, $body),
				'content' => $body
			]
		];

		return stream_context_create($contextOptions);
	}
protected function createContext($method, array $options, $body)
	{
		$contextOptions = [
			'ssl'  => ['verify_peer' => $this->sslVerifyPeer],
			'http' => [
				'method'  => $method,
				'timeout' => $this->timeout,
				'header'  => $this->generateHeaders($options, $body),
				'content' => $body
			]
		];

		return stream_context_create($contextOptions);
	}
protected function createContext ( $ method , array $ options , $ body ) { $ contextOptions = [ 'ssl' => [ 'verify_peer' => $ this -> sslVerifyPeer ] , 'http' => [ 'method' => $ method , 'timeout' => $ this -> timeout , 'header' => $ this -> generateHeaders ( $ options , $ body ) , 'content' => $ body ] ] ; return stream_context_create ( $ contextOptions ) ; }
Create a stream context for given request

@param  string   $method  Request method
@param  array    $options Request options
@param  string   $body    Request body
@return resource
Create a stream context for given request