This class is a wrapper around the CURL library. It permits network operations to be completed using cURL in a block or non-blocking manner.
func performFully() -> (Int, [UInt8], [UInt8])
Performs the request, blocking the current thread until it completes.
- returns: A tuple consisting of: Int - the result code, [UInt8] - the header bytes if any, [UInt8] - the body bytes if any
func perform() -> (Bool, Int, [UInt8]?, [UInt8]?)
Performs a bit of work on the current request.
- returns: A tuple consisting of: Bool - should perform() be called again, Int - the result code, [UInt8] - the header bytes if any, [UInt8] - the body bytes if any