                                    "80", "81", "82", "83", "84", "85", "86", "87", "88", "89",
                                    "90", "91", "92", "93", "94", "95", "96", "97", "98", "99"]
 }
+
+
+extension Date {
+    ///
+    /// Format the date for use in HTTP
+    ///
+    /// - Returns: string representation of Date
+    ///
+    var httpDate: String {
+        return SPIUtils.httpDate(self)
+    }
+}

        let min = Int(timeStruct.tm_min)
        let sec = Int(timeStruct.tm_sec)
        var s = days[wday]
        s.reserveCapacity(29)
        s.append(", ")
        s.append(twoDigit[mday])
        s.append(" ")

        
    }
    
    ///
    /// Format the given date for use in HTTP
    ///
    /// - Parameter date: the date
    ///
    /// - Returns: string representation of Date
    ///
    public static func httpDate(_ date: Date) -> String {
        return httpDate(from: time_t(date.timeIntervalSince1970))
    }

    ///
