     }
 }
 
-public extension Array where Element == UInt8 {
+public extension Sequence where Iterator.Element == UInt8 {
     func hexString() -> String {
         return self.map{String(format: "%02X", $0)}.joined()
     }

        }
    }
    
    mutating func set(httoAcceptCharset acceptCharset: String.Encoding) {
        let cfEncoding = CFStringConvertNSStringEncodingToEncoding(acceptCharset.rawValue)
        if let charsetString = CFStringConvertEncodingToIANACharSetName(cfEncoding) as String? {
            self.addValue(charsetString, forHTTPHeaderField: "Accept-Charset")
        }
    }
    
    mutating func set(httoAcceptCharset acceptCharset: Quality<String.Encoding>) {
        self.addValue(acceptCharset.stringifed, forHTTPHeaderField: "Accept-Charset")
    }
    
    mutating func set(httoAcceptCharsets acceptCharsets: [String.Encoding]) {
        self.setValue(nil, forHTTPHeaderField: "Accept-Charset")
        for charset in acceptCharsets {
            let cfEncoding = CFStringConvertNSStringEncodingToEncoding(charset.rawValue)

        }
    }
    
    mutating func set(httpAcceptCharsets acceptCharsets: [Quality<String.Encoding>]) {
        self.setValue(nil, forHTTPHeaderField: "Accept-Charset")
        for charset in acceptCharsets.sorted(by: { $0.quality > $1.quality }) {
            self.addValue(charset.stringifed, forHTTPHeaderField: "Accept-Charset")
