     func curlReadCallback(buf: UnsafeMutablePointer<Int8>, size: Int) -> Int
     func prepareForRedirect()
 }
-

        }
        setupHeaders()
    }
    
    private func setMethod() {
        let methodUpperCase = method.uppercaseString
        switch(methodUpperCase) {

        response.responseBuffers.appendBytes(UnsafePointer<UInt8>(buf), length: size)
        return size
    }

    private func curlReadCallback(buf: UnsafeMutablePointer<Int8>, size: Int) -> Int {
        let count = writeBuffers.fillBuffer(UnsafeMutablePointer<UInt8>(buf), length: size)
        return count
    }

    private func prepareForRedirect() {
        response.responseBuffers.reset()
        writeBuffers.rewind()
