code: public function acceptable(AcceptHeaderInterface $accept): ?Encoding
      {
          foreach ($accept->getMediaTypes() as $mediaType) {
              if ($encoding = $this->matchesTo($mediaType)) {
                  return $encoding;
              }
          }
  
          return null;
      }
docs: Get the acceptable encoding for the supplied Accept header.
  
  @param AcceptHeaderInterface $accept
  @return Encoding|null