Implemented convenient validation methods for NSURLConnectionDelegate and NSURLSessionDelegate