src/ActionRequest.php
public function acceptsEncoding($encoding = null)
    {
        if (!isset($encoding)) {
            return $this->attributes['encodings'];
        }
        return in_array($encoding, $this->attributes['encodings']);
    }
public function acceptsEncoding($encoding = null)
    {
        if (!isset($encoding)) {
            return $this->attributes['encodings'];
        }
        return in_array($encoding, $this->attributes['encodings']);
    }
public function acceptsEncoding ( $ encoding = null ) { if ( ! isset ( $ encoding ) ) { return $ this -> attributes [ 'encodings' ] ; } return in_array ( $ encoding , $ this -> attributes [ 'encodings' ] ) ; }
Whether or not the client accepts the specified encoding. If the type is
omitted then a list of acceptable encodings is returned.

@param string $encoding Encoding.
@return bool|string[] True if client accepts provided encoding, false otherwise.
List of accepted encodings if type parameter omitted.
Whether or not the client accepts the specified encoding . If the type is omitted then a list of acceptable encodings is returned .