     }
 
 
-    func toData() -> NSData {
+    public func toData() -> NSData {
         return toString().dataUsingEncoding(NSUTF8StringEncoding)!
     }
 
-    func toString() -> String {
+    public func toString() -> String {
         var strRep = "\(method) \(path) \(HTTPVersion)\r\n"
         for (key, value) in headers {
             strRep += "\(key): \(value)\r\n"

        }
    }

    func removeHeader(key: String) -> String? {
        for i in 0..<headers.count {
            if headers[i].0.caseInsensitiveCompare(key) == .OrderedSame {
                let (_, value) = headers.removeAtIndex(i)

        }
    }

    public convenience init?(headerData: NSData) {
        guard let headerString = NSString(data: headerData, encoding: NSASCIIStringEncoding) as? String else {
            return nil
        }
