In my objective C project i am using
- Segment 1).
[(NSInputStream *)CFReadStreamCreateForStreamedHTTPRequest(kCFAllocatorDefault, request,(CFReadStreamRef)[self postBodyReadStream]) autorelease]
but CFReadStreamCreateForStreamedHTTPRequest is deprecated what can i write alternatively ?
I tried
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
Error throws:-
Incompatible pointer types sending 'CFHTTPMessageRef' (aka 'struct >__CFHTTPMessage *') to parameter of type 'NSURLRequest * _Nonnull'
- Segment 2).
(NSString *)kCFStreamPropertyHTTPProxyHost
'kCFStreamPropertyHTTPProxyHost' is deprecated: Haven't found any replacement API.