public function buildHeaders($options)
    {
        $options = $this->resolve($options);
        $headerOptions = [];

        foreach ($this->headerParameters as $key => $isHeaderParameter) {
            if ($isHeaderParameter && isset($options[$key])) {
                $headerOptions[$key] = $options[$key];
            }
        }

        return $headerOptions;
    }
public function buildHeaders($options)
    {
        $options = $this->resolve($options);
        $headerOptions = [];

        foreach ($this->headerParameters as $key => $isHeaderParameter) {
            if ($isHeaderParameter && isset($options[$key])) {
                $headerOptions[$key] = $options[$key];
            }
        }

        return $headerOptions;
    }
public function buildHeaders ( $ options ) { $ options = $ this -> resolve ( $ options ) ; $ headerOptions = [ ] ; foreach ( $ this -> headerParameters as $ key => $ isHeaderParameter ) { if ( $ isHeaderParameter && isset ( $ options [ $ key ] ) ) { $ headerOptions [ $ key ] = $ options [ $ key ] ; } } return $ headerOptions ; }
Build headers list.

@param $options

@return array
Build headers list .