protected function updateRequest()
    {
        $headers = [];
        foreach ($this->all() as $key => $values) {
            foreach ($values as $value) {
                $headers[] = $key.': '.$value;
            }
        }

        $this->request->setOption(CURLOPT_HTTPHEADER, $headers);
    }
protected function updateRequest()
    {
        $headers = [];
        foreach ($this->all() as $key => $values) {
            foreach ($values as $value) {
                $headers[] = $key.': '.$value;
            }
        }

        $this->request->setOption(CURLOPT_HTTPHEADER, $headers);
    }
protected function updateRequest ( ) { $ headers = [ ] ; foreach ( $ this -> all ( ) as $ key => $ values ) { foreach ( $ values as $ value ) { $ headers [ ] = $ key . ': ' . $ value ; } } $ this -> request -> setOption ( CURLOPT_HTTPHEADER , $ headers ) ; }
Updates the headers in the associated request.
Updates the headers in the associated request .