private function setHeaders(RequestInterface $request)
    {
        $headers = [];
        foreach ($request->getHeaders() as $header => $values) {
            $headers[] = "{$header}: ".implode('; ', $values);
        }
        $this->options[CURLOPT_HTTPHEADER] = $headers;
    }
private function setHeaders(RequestInterface $request)
    {
        $headers = [];
        foreach ($request->getHeaders() as $header => $values) {
            $headers[] = "{$header}: ".implode('; ', $values);
        }
        $this->options[CURLOPT_HTTPHEADER] = $headers;
    }
private function setHeaders ( RequestInterface $ request ) { $ headers = [ ] ; foreach ( $ request -> getHeaders ( ) as $ header => $ values ) { $ headers [ ] = "{$header}: " . implode ( '; ' , $ values ) ; } $ this -> options [ CURLOPT_HTTPHEADER ] = $ headers ; }
Sets the headers from the request

@param RequestInterface $request
Sets the headers from the request