mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-04 18:03:41 +00:00
This PR adds the possibility to set the timeout and the cache policy of a CPURLRequest. For that, there are new things in the framework : - CFHTTPRequest has now the functions setTimeout(), getTimeout() and isTimeoutRequest - CPURLRequest has now the methods +requestWithURL:cachePolicy:timeoutInterval: and -initWithURL:cachePolicy:timeoutInterval: - CPURLConnection does not call the delegate didReceiveData: when a request has timed out. I will call the delegate didFailWithError: - Cache is now possible for a CPURLRequest, only CPURLRequestReturnCacheDataElseLoad, CPURLRequestReturnCacheDataDontLoad and CPURLRequestReloadIgnoringLocalCacheData are supported. By default CPURLRequestReloadIgnoringLocalCacheData. - Default timeout has been set to 60sec as in cocoa. - A request is considered as timeout when there isn't any response (text/xml/type) and when the status of the response is 0.