public function acceptsEncoding($encoding = null)
    {
        if (!isset($encoding)) {
            return $this->attributes['encodings'];
        }
        return in_array($encoding, $this->attributes['encodings']);
    }