What is replacement of CFReadStreamCreateForStreamedHTTPRequest?

前端 未结 1 1456
臣服心动
臣服心动 2021-01-23 13:19

In my objective C project i am using

  • Segment 1).
[(NSInputStream *)CFReadStreamCreateForStreamedHTTPRequest(kCFAllocatorDefault, request,(C         


        
相关标签:
1条回答
  • 2021-01-23 13:54

    To use dataTaskWithRequest:, you need to create an NSURLRequest, not a CFHTTPMessageRef.

    As for kCFStreamPropertyHTTPProxyHost, this question asks “How to programmatically add a proxy to an NSURLSession” and has an answer that looks good to me.

    0 讨论(0)
提交回复
热议问题