Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想获取一个 NSURLRequest 并将其转换为一些可以写入 socket() 的可用数据,而不是像 NSURLConnection 之类的东西。
实现这一目标的最佳方法是什么?
NO!
You can create a NSMutableURLRequest and provide that request with a HTTPBodyStream then create a NSURLConnection to send the request.
The HTTPBodyStream is an NSInputStream the request will read the body from. You can get it value from user, file or NSData.