官方文档关于CCHttpClient的说明是不是错误的?

Read the ResponseIt is vital that the response body is always read regardless of the status returned by the server. There are three ways to do this:
Call getRequestData() This will return a raw data containing the data in the response body.1 /** Get the request data pointer back /2inline char getRequestData()这段完全就没法再代码里重现啊,而且getRequestData在官方wiki说明里是“Get the request data pointer back”
不是获取reponese,而是获得request数据的指针。
而且我在代码里用这个函数会直接报错啊

我现在的困惑时,网上不少提到这个库的文章,讲到如何处理返回数据时都是利用那个setResponseCallback里设置的到请求完成的回调函数,但是这样一来整个访问就是异步的,我用什么方法知道访问结束了呢,因为我等待着数据

每个请求都可以自己设置回调函数

— Begin quote from ____

zhoukaijun 发表于 2013-7-2 16:27 url

每个请求都可以自己设置回调函数

— End quote

网上也是回调函数,但是回调函数有个问题,假如我需要等待http请求返回的数据,wo