code: 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;
      }
docs: Build headers list.
  
  @param $options
  
  @return array